Skip to content

Instantly share code, notes, and snippets.

@myronmarston
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myronmarston/c0fa28496034730ad363 to your computer and use it in GitHub Desktop.
Save myronmarston/c0fa28496034730ad363 to your computer and use it in GitHub Desktop.
puts "RSpec version: #{RSpec::Core::Version::STRING}"
describe 'Comments' do
before do
end
context 'can be created' do
example 'by the original author' do
end
example 'by moderators' do
end
example 'by other users' do
end
end
it 'can be viewed' do
end
end
# A sample Gemfile
source "https://rubygems.org"
gem 'rspec', '~> 2.14.0'
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.2.5)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.8)
rspec-expectations (2.14.5)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.6)
PLATFORMS
ruby
DEPENDENCIES
rspec (~> 2.14.0)
# A sample Gemfile
source "https://rubygems.org"
gem 'rspec', '~> 3.1.0'
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.2.5)
rspec (3.1.0)
rspec-core (~> 3.1.0)
rspec-expectations (~> 3.1.0)
rspec-mocks (~> 3.1.0)
rspec-core (3.1.7)
rspec-support (~> 3.1.0)
rspec-expectations (3.1.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.1.0)
rspec-mocks (3.1.3)
rspec-support (~> 3.1.0)
rspec-support (3.1.2)
PLATFORMS
ruby
DEPENDENCIES
rspec (~> 3.1.0)
➜ rspec-example-order BUNDLE_GEMFILE=Gemfile-2-14 bundle exec rspec example_spec.rb --format doc
RSpec version: 2.14.8
Comments
can be viewed
can be created
by the original author
by moderators
by other users
Finished in 0.00091 seconds
4 examples, 0 failures
➜ rspec-example-order BUNDLE_GEMFILE=Gemfile-3-1 bundle exec rspec example_spec.rb --format doc
RSpec version: 3.1.7
Comments
can be viewed
can be created
by the original author
by moderators
by other users
Finished in 0.00127 seconds (files took 0.11221 seconds to load)
4 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment