Updated to latest rspec
[gitorious:georgyos-clone.git] / vendor / plugins / rspec-rails / spec / rails / extensions / active_record_spec.rb
1 require File.dirname(__FILE__) + '/../../spec_helper'
2
3 describe "A model" do
4   fixtures :things
5   it "should tell you its required fields" do
6     Thing.new.should have(1).error_on(:name)
7   end
8   
9   it "should tell you how many records it has" do
10     Thing.should have(:no).records
11     Thing.create(:name => "THE THING")
12     Thing.should have(1).record
13   end
14 end