Sha256: d238f89b2f39eaecf27a89204f2cf3ccceeddc6b74175d60288fa1e9898bcae4

Contents?: true

Size: 634 Bytes

Versions: 2

Compression:

Stored size: 634 Bytes

Contents

require 'spec_helper'

describe "cities/edit.html.erb" do
  before(:each) do
    @city = assign(:city, stub_model(City,
      :name => "MyString",
      :state_id => 1,
      :active => false
    ))
  end

  it "renders the edit city form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => cities_path(@city), :method => "post" do
      assert_select "input#city_name", :name => "city[name]"
      assert_select "input#city_state_id", :name => "city[state_id]"
      assert_select "input#city_active", :name => "city[active]"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_suppliers-0.0.1 spec/views/cities/edit.html.erb_spec.rb
spree_suppliers-0.60.3 spec/views/cities/edit.html.erb_spec.rb