4 context "with valid attributes" do
6 be_valid.matches?(Thing.new(:name => 'thing')).should == true
10 context "with invalid attributes" do
12 be_valid.matches?(Thing.new).should == false
15 it "adds errors to the errors " do
16 expect { Thing.new.should be_valid }.to raise_error(/can't be blank/)