Sha256: fdea4541698053e2e6619ac094a60d8121949d0ceef1e8a2388d96d13e6cad4f
Contents?: true
Size: 551 Bytes
Versions: 10
Compression:
Stored size: 551 Bytes
Contents
require 'spec_helper' describe "settings/new" do before(:each) do assign(:setting, stub_model(Setting, :key => "MyString", :value => "MyString" ).as_new_record) end it "renders new setting form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => settings_path, :method => "post" do assert_select "input#setting_key", :name => "setting[key]" assert_select "input#setting_value", :name => "setting[value]" end end end
Version data entries
10 entries across 10 versions & 1 rubygems