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