Sha256: eb2c499c1f08ee1ed18aed1f9b0630d26bef7030128fa63c458d50bd34a93f40
Contents?: true
Size: 526 Bytes
Versions: 2
Compression:
Stored size: 526 Bytes
Contents
require 'spec_helper' describe Plan do it {should validate_presence_of :name} it {should validate_presence_of :billing_period} it {should validate_numericality_of :price} it {should validate_presence_of :price} it {should allow_mass_assignment_of :name} it {should allow_mass_assignment_of :billing_period} it { should have_many :subscriptions} it 'should have dynamic attributes' do p = Factory.create(:plan) p.update_attributes(:field_testing => "test") p.testing.should == "test" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saasaparilla-0.2.2 | spec/models/plan_spec.rb |
saasaparilla-0.2.1 | spec/models/plan_spec.rb |