Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Commit

Permalink
Added a spec for testing the definition of the predefined_attributes …
Browse files Browse the repository at this point in the history
…instance variable.
  • Loading branch information
postmodern committed Apr 2, 2010
1 parent ddc81b4 commit 6a0b3af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/integration/predefined_spec.rb
Expand Up @@ -7,6 +7,10 @@
TestModel.auto_migrate!
end

it "should define the @predefined_attributes instance variable" do
TestModel.instance_variables.should include('@predefined_attributes')
end

it "should provide the names of all predefined resources of a Model" do
TestModel.predefined_names.should =~ [:test1, :test2]
end
Expand Down

0 comments on commit 6a0b3af

Please sign in to comment.