Skip to content

Instantly share code, notes, and snippets.

@yujinakayama
Last active August 29, 2015 14:24
Show Gist options
  • Save yujinakayama/8e79c301c6006fd70943 to your computer and use it in GitHub Desktop.
Save yujinakayama/8e79c301c6006fd70943 to your computer and use it in GitHub Desktop.
--color
--format progress
source 'https://rubygems.org'
gem 'rspec', '~> 2.14.0'
gem 'mocha'
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.2.5)
metaclass (0.0.4)
mocha (1.1.0)
metaclass (~> 0.0.1)
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
mocha
rspec (~> 2.14.0)
BUNDLED WITH
1.10.4
RSpec.configure do |config|
config.mock_with :mocha
end
describe 'issue' do
it "is an example using mocha's #stub" do
stub(:pence => 1000)
p method(:stub).source_location
end
end
$ transpec issue_spec.rb
Copying the project for dynamic analysis...
Running dynamic analysis with command "bundle exec rspec"...
["/Users/nkymyj/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mocha-1.1.0/lib/mocha/api.rb", 89]
.
Finished in 0.00046 seconds
1 example, 0 failures
Gathering the spec suite data...
Converting issue_spec.rb
0 conversions, 0 incompletes, 0 warnings, 0 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment