Sha256: b1f01bf57c27f079db8ade47fc97e6eda9a0992ed029d81ab07291bb87d4c824

Contents?: true

Size: 623 Bytes

Versions: 2

Compression:

Stored size: 623 Bytes

Contents

require 'spec_helper'

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

  it "renders attributes in <p>" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/Name/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/1/)
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/false/)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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