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

Version Path
kuztuscms-0.0.10 spec/views/kuztuscms/settings/new.html.erb_spec.rb
kuztuscms-0.0.9 spec/views/kuztuscms/settings/new.html.erb_spec.rb
kuztuscms-0.0.8 spec/views/kuztuscms/settings/new.html.erb_spec.rb
kuztuscms-0.0.7 spec/views/kuztuscms/settings/new.html.erb_spec.rb
kuztuscms-0.0.6 spec/views/kuztuscms/settings/new.html.erb_spec.rb
kuztuscms-0.0.5 spec/views/kuztuscms/settings/new.html.erb_spec.rb
kuztuscms-0.0.4 spec/views/kuztuscms/settings/new.html.erb_spec.rb
kuztuscms-0.0.3 spec/views/kuztuscms/settings/new.html.erb_spec.rb
kuztuscms-0.0.2 spec/views/kuztuscms/settings/new.html.erb_spec.rb
kuztuscms-0.0.1 spec/views/kuztuscms/settings/new.html.erb_spec.rb