Sha256: 5edccd252412a81e6676568f1b0ebd656f6e0c2ae40613b0bbff73f742689b2c

Contents?: true

Size: 1007 Bytes

Versions: 7

Compression:

Stored size: 1007 Bytes

Contents

require 'spec_helper'

describe "users/show.html.erb" do
  before(:each) do
    @user = assign(:user, stub_model(User,
      :name => "Name",
      :nickname => "Nickname",
      :image => "Image",
      :description => "Description",
      :location => "Location"
    ))
  end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
echo_base-0.1.3 lib/generators/echo_base/templates/spec/views/users/show.html.erb_spec.rb
echo_base-0.1.2 lib/generators/echo_base/templates/spec/views/users/show.html.erb_spec.rb
echo_base-0.1.1 lib/generators/echo_base/templates/spec/views/users/show.html.erb_spec.rb
echo_base-0.1.0 lib/generators/echo_base/templates/spec/views/users/show.html.erb_spec.rb
echo_base-0.0.4 lib/generators/echo_base/templates/spec/views/users/show.html.erb_spec.rb
echo_base-0.0.3 lib/generators/echo_base/templates/spec/views/users/show.html.erb_spec.rb
echo_base-0.0.2 lib/generators/echo_base/templates/spec/views/users/show.html.erb_spec.rb