Skip to content

Commit

Permalink
spec to expose bug and fixed #590
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfrench committed Jun 11, 2011
1 parent aefbba4 commit 82fa002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/formtastic/inputs/select_input.rb
Expand Up @@ -175,7 +175,7 @@ def label_html_options
end

def input_options
{:include_blank => include_blank?}.merge(super)
super.merge({:include_blank => include_blank?, :prompt => nil})
end

def input_html_options
Expand Down
2 changes: 1 addition & 1 deletion spec/inputs/select_input_spec.rb
Expand Up @@ -418,7 +418,7 @@
end

it 'should have a select with prompt' do
output_buffer.should have_tag("form li select option[@value='']", /choose author/)
output_buffer.should have_tag("form li select option[@value='']", /choose author/, :count => 1)
end

it 'should not have a blank select option' do
Expand Down

0 comments on commit 82fa002

Please sign in to comment.