spec/rspec/rails/mocks/mock_model_spec.rb in rspec-rails-2.4.1 vs spec/rspec/rails/mocks/mock_model_spec.rb in rspec-rails-2.5.0

- old
+ new

@@ -258,9 +258,15 @@ it "returns nil for #to_param" do mock_model(MockableModel).as_new_record.to_param.should be(nil) end end + describe "#blank?" do + it "is false" do + mock_model(MockableModel).should_not be_blank + end + end + describe "ActiveModel Lint tests" do require 'test/unit/assertions' require 'active_model/lint' include Test::Unit::Assertions include ActiveModel::Lint::Tests