spec/riveter/attributes_spec.rb in riveter-0.0.7 vs spec/riveter/attributes_spec.rb in riveter-0.0.8

- old
+ new

@@ -73,28 +73,28 @@ it { instance.should respond_to(:an_attribute_from?) } it { instance.an_attribute = nil - instance.an_attribute_from?.should be_false + instance.an_attribute_from?.should be_falsey } it { instance.an_attribute_from = Date.today - instance.an_attribute_from?.should be_true + instance.an_attribute_from?.should be_truthy } it { instance.should respond_to(:an_attribute_to?) } it { instance.an_attribute = nil - instance.an_attribute_to?.should be_false + instance.an_attribute_to?.should be_falsey } it { instance.an_attribute_to = Date.today - instance.an_attribute_to?.should be_true + instance.an_attribute_to?.should be_truthy } end end it_should_behave_like "an attribute", :time, Time.new(2010, 1, 12, 8, 4, 45) do @@ -231,10 +231,10 @@ }) } end describe "#persisted?" do - it { subject.persisted?.should be_false } + it { subject.persisted?.should be_falsey } end describe "#column_for_attribute" do it { subject.column_for_attribute(:string).should_not be_nil } it { subject.column_for_attribute(:string).name.should eq(:string) }