➜ skip_before_all git:(master) ✗ ruby -v
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin12.0]
➜ skip_before_all git:(master) ✗ bundle install
Using diff-lcs 1.2.5
Using rspec-support 3.2.2
Using rspec-core 3.2.2
Using rspec-expectations 3.2.0
Using rspec-mocks 3.2.1
Using rspec 3.2.0
Using bundler 1.9.0
Bundle complete! 1 Gemfile dependency, 7 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
➜ skip_before_all git:(master) ✗ bundle exec rspec .; echo $?
.**
Pending: (Failures listed here are expected and do not affect your
suite's status)
1) Skip before all
# because
# ./skip_before_all_spec.rb:3
2) Skip before all
# because
# ./skip_before_all_spec.rb:4
Finished in 0.00087 seconds (files took 0.0859 seconds to load)
3 examples, 0 failures, 2 pending
1
Last active
August 29, 2015 14:18
-
-
Save myronmarston/56f213a4a71569f0f03a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A sample Gemfile | |
source "https://rubygems.org" | |
gem 'rspec' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GEM | |
remote: https://rubygems.org/ | |
specs: | |
diff-lcs (1.2.5) | |
rspec (3.2.0) | |
rspec-core (~> 3.2.0) | |
rspec-expectations (~> 3.2.0) | |
rspec-mocks (~> 3.2.0) | |
rspec-core (3.2.2) | |
rspec-support (~> 3.2.0) | |
rspec-expectations (3.2.0) | |
diff-lcs (>= 1.2.0, < 2.0) | |
rspec-support (~> 3.2.0) | |
rspec-mocks (3.2.1) | |
diff-lcs (>= 1.2.0, < 2.0) | |
rspec-support (~> 3.2.0) | |
rspec-support (3.2.2) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
rspec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.describe "Normal" do | |
it "works" do | |
expect(1).to eq(1) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.describe "Skip before all" do | |
before(:all) { skip "because" } | |
it { } | |
it { } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment