Sha256: fe3580e84d4fa01ace23522e7fd44fcd9438298141efbe733a02fdb3a2565446

Contents?: true

Size: 365 Bytes

Versions: 35

Compression:

Stored size: 365 Bytes

Contents

require File.dirname(__FILE__) + '/../../../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

35 entries across 35 versions & 5 rubygems

Version Path
cavalle-rspec-rails-1.2.2.0.1 spec/spec/rails/extensions/active_record_spec.rb
cavalle-rspec-rails-1.2.2.0.2 spec/spec/rails/extensions/active_record_spec.rb
cavalle-rspec-rails-1.2.3.1 spec/spec/rails/extensions/active_record_spec.rb
cavalle-rspec-rails-1.2.4.0.1 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.11.4 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.11.5 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.11.6 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.11.7 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.12 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.99.1 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.99.13 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.99.2 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.99.3 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.99.4 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.99.5 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.99.6 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.99.7 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.99.8 spec/spec/rails/extensions/active_record_spec.rb
dchelimsky-rspec-rails-1.1.99.9 spec/spec/rails/extensions/active_record_spec.rb
mcmire-rspec-rails-1.1.99.9 spec/spec/rails/extensions/active_record_spec.rb