Skip to content

Commit

Permalink
Add test for clashing class variables without inheritable attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mordaroso committed Aug 22, 2012
1 parent 042bfcd commit 3c58f79
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/functional/formable_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ class TestModel
form_property :my_number, :number, title: "My Number", :transform => lambda { |value| value.to_i + 10 }
end

class AdditionalTestModel
include Formotion::Formable

attr_accessor :my_other_name, :my_other_number

form_property :my_other_name, :string
form_property :my_other_number, :number
end

describe "FormableController" do
tests Formotion::FormableController

Expand Down

0 comments on commit 3c58f79

Please sign in to comment.