generators/manifests/templates/spec/lib/rules/complex_spec.rb in rules_engine-0.3.0 vs generators/manifests/templates/spec/lib/rules/complex_spec.rb in rules_engine-0.3.1
- old
+ new
@@ -380,10 +380,11 @@
end
end
describe "edit" do
it "show the edit form" do
- re_rule = ReRule.create!(:re_workflow_id => @re_workflow.id, :rule_class_name => "RulesEngine::Rule::<%=rule_class%>",
+ re_rule = ReRule.create!(:re_workflow_id => @re_workflow.id,
+ :rule_class_name => "RulesEngine::Rule::<%=rule_class%>",
:data => valid_<%=rule_name%>_rule_data)
ReRule.stub!(:find).and_return(re_rule)
get :edit, :re_workflow_id => @re_workflow.id, :id => 1001, :rule_class_name => "RulesEngine::Rule::<%=rule_class%>"
response.should have_selector("form#re_rule_edit_form") do |form|