Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
added model_object option. hash syntax in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Baltazore committed Sep 25, 2012
1 parent 46dcbc0 commit cd93000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/nested_form/builder_spec.rb
Expand Up @@ -112,7 +112,7 @@
context "when model_object given" do
it "should use it instead of new generated" do
subject.fields_for(:tasks) {|f| f.object.name }
subject.link_to_add("Add", :tasks, model_object: Task.new(name: 'for check'))
subject.link_to_add("Add", :tasks, model_object: Task.new(:name => 'for check'))
output = template.send(:after_nested_form_callbacks)
expected = ERB::Util.html_escape '<div class="fields">for check</div>'
output.should match(/div.+data-blueprint="#{expected}"/)
Expand Down

0 comments on commit cd93000

Please sign in to comment.