search for: should_not_eql

Displaying 4 results from an estimated 4 matches for "should_not_eql".

2006 Dec 04
5
should_be_different -- possible implementation
...can read about it at http://blog.caboo.se/articles/2006/06/13/a-better- assert_difference and to some it should look familiar -- you know who you are :), so I took a shot at one for rSpec on Rails. class Object def should_be_different(method = nil, difference = nil) return self.should_not_eql(yield) if method.nil? before = self.send(method) yield return self.send(method).should_not_eql(before) if difference.nil? (self.send(method) - before).should_eql difference end end Usage: specify "should be able to create a new user" do...
2006 Oct 17
0
new handling of equality
...to should_be(true) or should_be(false) using non-boolean values. Those you''ll just have to inspect manually and adjust appropriately (sorry!). ============================================ There are two outstanding issues. 1. actual.should != expected does not work (right now you can use should_not_eql) 2. lambda { expr }.should_eql expected compares to the proc rather than the result I''ll bring these up in separate threads, so please don''t respond to this thread w/ either of these issues. I''d encourage any and all of you who can check out and build from source to che...
2006 Oct 17
0
actual.should != not_expected
...patch, please make sure that the spec above and all other specs are passing. Also - I view this as a bell (or whistle, if you prefer). Specifying something as vague as != seems almost useless to me to begin with, but if you really do need to specify inequality you''ll be ableto do it with should_not_eql or should_not_equal. That said, we will reserve the right to not incorporate a working solution if we feel that it is not cleanly aligned with the rest of RSpec''s internals, or makes us all go "wow, that''s cool, but what a hack!". So please do not submit anything unless...
2007 Apr 04
11
ANN: RSpec 0.9.0 beta-1 available for download.
We''d like to get some feedback on RSpec 0.9 before we start pushing out releases via Rubyforge''s gem server and update the website. We have therefore made the first beta of 0.9 available - both prepackaged and tagged in subversion (see below). RSpec 0.9 introduces a new API for expectations, which essentially means that your underscores go away (there has been other discussions