Sha256: 5773e62221e1d5ae10d5236d94c6ad5ba4d5a3c98220d164edbaaf4ffbecb03c
Contents?: true
Size: 330 Bytes
Versions: 17
Compression:
Stored size: 330 Bytes
Contents
require 'spec_helper' describe "A model" do fixtures :things it "should tell you its required fields" do Thing.new.should have(1).error_on(:name) end it "should tell you how many records it has" do Thing.should have(:no).records Thing.create(:name => "THE THING") Thing.should have(1).record end end
Version data entries
17 entries across 17 versions & 6 rubygems