→ cat test_spec.rb
describe "hello" do
before do
skip "skipped"
end
it "works" do
end
end
→ rspec test_spec.rb
*
Pending:
hello works
# skipped
# ./test_spec.rb:5
Finished in 0.00031 seconds (files took 0.09723 seconds to load)
1 example, 0 failures, 1 pending
→ echo $?
0
→ vim test_spec.rb # Change before to before(:all)
→ cat test_spec.rb
describe "hello" do
before(:all) do
skip "skipped"
end
it "works" do
end
end
→ rspec test_spec.rb
*
Pending:
hello works
# skipped
# ./test_spec.rb:5
Finished in 0.00023 seconds (files took 0.09867 seconds to load)
1 example, 0 failures, 1 pending
→ echo $?
1