Last active
August 29, 2015 14:24
-
-
Save yujinakayama/8e79c301c6006fd70943 to your computer and use it in GitHub Desktop.
This file contains 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
--color | |
--format progress |
This file contains 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
source 'https://rubygems.org' | |
gem 'rspec', '~> 2.14.0' | |
gem 'mocha' |
This file contains 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) | |
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 |
This file contains 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.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 |
This file contains 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
$ 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