Sha256: 82425b79ad6c57fe999669ccd15c5f8b4267b1ea15c75ca8a48055d24b41cb95
Contents?: true
Size: 807 Bytes
Versions: 9
Compression:
Stored size: 807 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * controller_class_nesting_depth %>/../../spec_helper') describe "/<%= table_name %>/edit.<%= default_file_extension %>" do include <%= controller_class_name %>Helper before do @<%= file_name %> = Factory(:<%= file_name %>) assigns[:<%= file_name %>] = @<%= file_name %> template.should_receive(:object_url).twice.and_return(<%= file_name %>_path(@<%= file_name %>)) template.should_receive(:collection_url).and_return(<%= file_name.pluralize %>_path) end it "should render edit form" do render "/<%= table_name %>/edit.<%= default_file_extension %>" response.should have_tag("form[action=#{<%= file_name %>_path(@<%= file_name %>)}][method=post]") do # Test attributes here end end end
Version data entries
9 entries across 9 versions & 2 rubygems