Metadata


Name
spy
Version
0.4.2
Platform
ruby
Authors
Ryan Ong
Bindir
bin
Date
2015-05-12 00:00:00 UTC
Dependencies
pry (>= 0, development)
pry-nav (>= 0, development)
minitest (>= 4.5.0, development)
rspec-core (>= 0, development)
rspec-expectations (>= 0, development)
coveralls (>= 0, development)
Description
A simple modern mocking library that uses the spy pattern and checks method's existence and arity.
Email
ryanong@gmail.com
Files
.gitignore
.travis.yml
.yardopts
CHANGELOG.md
Gemfile
LICENSE.txt
README.md
Rakefile
lib/spy.rb
lib/spy/agency.rb
lib/spy/api.rb
lib/spy/base.rb
lib/spy/call_log.rb
lib/spy/constant.rb
lib/spy/core_ext/marshal.rb
lib/spy/exceptions.rb
lib/spy/integration.rb
lib/spy/mock.rb
lib/spy/nest.rb
lib/spy/subroutine.rb
lib/spy/version.rb
spec/spec_helper.rb
spec/spy/and_call_original_spec.rb
spec/spy/and_yield_spec.rb
spec/spy/any_instance_spec.rb
spec/spy/hash_excluding_matcher_spec.rb
spec/spy/hash_including_matcher_spec.rb
spec/spy/mutate_const_spec.rb
spec/spy/nil_expectation_warning_spec.rb
spec/spy/null_object_mock_spec.rb
spec/spy/partial_mock_spec.rb
spec/spy/passing_argument_matchers_spec.rb
spec/spy/serialization_spec.rb
spec/spy/stash_spec.rb
spec/spy/stub_implementation_spec.rb
spec/spy/stub_spec.rb
spec/spy/to_ary_spec.rb
spy.gemspec
test/integration/test_api.rb
test/integration/test_constant_spying.rb
test/integration/test_instance_method.rb
test/integration/test_mocking.rb
test/integration/test_subroutine_spying.rb
test/spy/test_mock.rb
test/spy/test_subroutine.rb
test/support/pen.rb
test/test_helper.rb
Homepage
https://github.com/ryanong/spy
Licenses
MIT
Require paths
lib
Required ruby version
>= 1.9.3
Required rubygems version
>= 0
Rubygems version
2.4.5
Specification version
4
Summary
Spy is a mocking library that was made for the modern age. It supports only 1.9.3+. Spy by default will raise an error if you attempt to stub a method that doesn't exist or call the stubbed method with the wrong arity.
Test files
spec/spec_helper.rb
spec/spy/and_call_original_spec.rb
spec/spy/and_yield_spec.rb
spec/spy/any_instance_spec.rb
spec/spy/hash_excluding_matcher_spec.rb
spec/spy/hash_including_matcher_spec.rb
spec/spy/mutate_const_spec.rb
spec/spy/nil_expectation_warning_spec.rb
spec/spy/null_object_mock_spec.rb
spec/spy/partial_mock_spec.rb
spec/spy/passing_argument_matchers_spec.rb
spec/spy/serialization_spec.rb
spec/spy/stash_spec.rb
spec/spy/stub_implementation_spec.rb
spec/spy/stub_spec.rb
spec/spy/to_ary_spec.rb
test/integration/test_api.rb
test/integration/test_constant_spying.rb
test/integration/test_instance_method.rb
test/integration/test_mocking.rb
test/integration/test_subroutine_spying.rb
test/spy/test_mock.rb
test/spy/test_subroutine.rb
test/support/pen.rb
test/test_helper.rb
Original platform
ruby
New platform
ruby