Permalink
Browse files

Make new tests RSpec 2.0 compatible

  • Loading branch information...
1 parent aeb3027 commit e2ffb7dda3e588ac0fce29d0e4fc94c83716119a @mjonuschat mjonuschat committed Jun 30, 2010
Showing with 3 additions and 1 deletion.
  1. +2 −1 spec/inputs/check_boxes_input_spec.rb
  2. +1 −0 spec/inputs/radio_input_spec.rb
@@ -278,12 +278,13 @@
describe "when :label option is set" do
before do
@new_post.stub!(:author_ids).and_return(nil)
- semantic_form_for(@new_post) do |builder|
+ @form = semantic_form_for(@new_post) do |builder|
concat(builder.input(:authors, :as => :check_boxes, :label => 'The authors'))
end
end
it "should output the correct label title" do
+ output_buffer.concat(@form) if Formtastic::Util.rails3?
output_buffer.should have_tag("legend.label label", /The authors/)
end
end
@@ -210,6 +210,7 @@
end
it "should output the correct label title" do
+ output_buffer.concat(@form) if Formtastic::Util.rails3?
output_buffer.should have_tag("legend.label label", /The authors/)
end
end

0 comments on commit e2ffb7d

Please sign in to comment.