Displaying 1 result from an estimated 1 matches for "should_be_true".
2007 Apr 26
0
Shouldn't this spec fail?
...= valid_emailer_attributes.except(:name)
@emailer.name.should_not_be_nil
@emailer.should_be_valid
end
specify "should not replace name if one is given" do
@emailer.attributes = valid_emailer_attributes # valid name attribute is
"bill"
(@emailer.name=="bill").should_be_true
end
class Emailer < ActiveRecord::Base
def after_initialize
self.name = "joe"
end
end
I know how to code what I''m trying to do, but I want to make sure I only do
the minimum to make the specs pass, in proper TDD/BDD style.
-Nathan
--~--~---------~--~----~-...