Displaying 3 results from an estimated 3 matches for "operator_match".
Did you mean:
operator_matcher
2010 Jul 08
3
Testing equality
Hello
How can I test equality with two objects when they include some
attribute that is BigDecimal?
if I make something like this:
it "should ...whatever" do
obj = Factory.create(:my_object)
...
MyObject.first.should == obj
end.
FAILS
This fails because the object expected is different from the object
gotten, and the only difference are the BigDecimal attributes, that are
2007 Oct 17
16
rspec causing validates_presence_of to validate twice?
I had posted this on the regular Rails list, but upon trying this in
script/console, it seems like the behavior only exists when running rspec.
I''m getting some weird behavior in one of my models. I have a model
defined something like this
class User < ActiveRecord::Base
attr_accessor :password
validates_presence_of :password
end
If I validate the model without specifying a
2007 Jul 26
5
Coding standards and whitespace
...hers/be.rb
rspec/lib/spec/matchers/be_close.rb
rspec/lib/spec/matchers/change.rb
rspec/lib/spec/matchers/eql.rb
rspec/lib/spec/matchers/equal.rb
rspec/lib/spec/matchers/has.rb
rspec/lib/spec/matchers/have.rb
rspec/lib/spec/matchers/include.rb
rspec/lib/spec/matchers/match.rb
rspec/lib/spec/matchers/operator_matcher.rb
rspec/lib/spec/matchers/raise_error.rb
rspec/lib/spec/matchers/respond_to.rb
rspec/lib/spec/matchers/satisfy.rb
rspec/lib/spec/matchers/throw_symbol.rb
rspec/lib/spec/matchers.rb
rspec/lib/spec/mocks/argument_constraint_matchers.rb
rspec/lib/spec/mocks/argument_expectation.rb
rspec/lib/spec/mo...