diff --git a/spec/views/submissions/new.html.haml_spec.rb b/spec/views/submissions/new.html.haml_spec.rb new file mode 100644 --- /dev/null +++ b/spec/views/submissions/new.html.haml_spec.rb @@ -0,0 +1,15 @@ +require 'spec_helper' + +describe "submissions/new" do + before(:each) do + assign(:submission, stub_model(Submission).as_new_record) + end + + it "renders new submission form" do + render + + # Run the generator again with the --webrat flag if you want to use webrat matchers + assert_select "form[action=?][method=?]", submissions_path, "post" do + end + end +end