Comments (3)
I tried this with a Hashie::Mash
and run into the same issue. If I recall correctly these libraries do not define the methods but instead rely on method_missing
to proxy the request or dynamically generate the method and proxy the request.
To workaround it, I created a timeout
method on the instance itself.
obj = Hashie::Mash.new(@yaml['development'])
def obj.timeout
self['timeout']
end
from rspec-its.
Confirmed, theres some weirdness in method definition when theres two defined.
from rspec-its.
It seems that require 'timeout'
is monkey patching BasicObject
and injects .timeout
.
To confirm that, you can call development.send(:timeout)
, you'll get a
warning: Object#timeout is deprecated, use Timeout.timeout instead.
in addition to an ArgumentError
exception because you're not passing the timeout in seconds.
Related to #28.
from rspec-its.
Related Issues (20)
- The use of doubles or partial doubles from rspec-mocks outside of the per-test lifecycle is not supported. HOT 11
- Test failing due to change in RSpec's execution_result method HOT 2
- RSpec 3 is being released tomorrow HOT 1
- Accepting method arguments HOT 15
- It's not possible to focus on an `its` assertion. HOT 12
- 'its' for expecting exceptions HOT 2
- deep hash support HOT 3
- Should use `Object#public_send` instead of `Object#send`. HOT 16
- described_class is changed when using its HOT 1
- Possible to mark "its" examples as pending? HOT 1
- are_expected undefined HOT 3
- Please update to compatible with RSpec 3.2 HOT 2
- Link to documentation from Rubygems is wrong HOT 8
- rspec-its breaking InSpec HOT 4
- its against BasicObject fails to generate description HOT 1
- its([:attr]) has the proper value, its(:attr) does not HOT 1
- irb: warn: can't alias context from irb_context. HOT 3
- Is using `its` still recommended? HOT 4
- Wrong number of arguments HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspec-its.