Sha256: 39b04f4401c05b0fd3bc860784251e406d2520549c66958a7865f686e121fbd7
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
require 'rails_helper' describe "Static pages" do # subject { page } # describe "Home page" do # before { visit root_path } # it { should have_content('Sample App') } # it { should have_title(full_title('')) } # it { should_not have_title('| Home') } # describe "for signed-in users" do # let(:user) { FactoryGirl.create(:user) } # before do # FactoryGirl.create(:micropost, user: user, content: "Lorem") # FactoryGirl.create(:micropost, user: user, content: "Ipsum") # sign_in user # visit root_path # end # it "should render the user's feed" do # user.feed.each do |item| # expect(page).to have_selector("li##{item.id}", text: item.content) # end # end # describe "follower/following counts" do # let(:other_user) { FactoryGirl.create(:user) } # before do # other_user.follow!(user) # visit root_path # end # it { should have_link("0 following", href: following_user_path(user)) } # it { should have_link("1 followers", href: followers_user_path(user)) } # end # end # end # describe "Help page" do # before { visit help_path } # it { should have_content('Help') } # it { should have_title(full_title('Help')) } # end # describe "About page" do # before { visit about_path } # it { should have_content('About') } # it { should have_title(full_title('About Us')) } # end # describe "Contact page" do # before { visit contact_path } # it { should have_selector('h1', text: 'Contact') } # it { should have_title(full_title('Contact')) } # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_magic_renamer-2.0.0.pre.alpha | spec/support/sample_app_rails_4/spec/features/static_pages_spec.rb |