Skip to content

Instantly share code, notes, and snippets.

@bryansray
Created August 16, 2008 18:42
Show Gist options
  • Save bryansray/5736 to your computer and use it in GitHub Desktop.
Save bryansray/5736 to your computer and use it in GitHub Desktop.
it "should render the first and then last values in an array if no text method is specified and collection is an array of arrays" do
form_for @obj do
content = select_control( :foo, :collection => [[0, 'FakeModel']] )
content.should match_tag( :option, :value => "0")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment