Skip to content

Commit

Permalink
Added a spec for field input_options to cover failing case on 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Tillman committed Dec 14, 2011
1 parent cc9bf60 commit 1acf402
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/models/field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@
)
end


it "should return a list of field types" do
Field.field_types['string'].should == {:type => :string, :options => nil}
end

it "should return a hash of input options" do
Field.new.input_options.should be_a(Hash)
end

it "should be able to display a empty multi_select value" do
field = Field.new(
Expand Down

0 comments on commit 1acf402

Please sign in to comment.