From 634d0d5aecb28b3b1b59955ceb8676294f6a7fc4 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Mon, 27 May 2013 22:04:52 +0200 Subject: [PATCH] Rename expect_browse_section to expect_browse_links --- spec/features/asciicasts_spec.rb | 4 ++-- spec/features/home_spec.rb | 3 +-- spec/support/feature_helpers.rb | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spec/features/asciicasts_spec.rb b/spec/features/asciicasts_spec.rb index 6170e26..a914613 100644 --- a/spec/features/asciicasts_spec.rb +++ b/spec/features/asciicasts_spec.rb @@ -8,7 +8,7 @@ feature "Asciicast lists" do visit browse_path expect(page).to have_content(/All Asciicasts/i) - expect_browse_section + expect_browse_links expect(page).to have_link("##{asciicast.id}") expect(page).to have_selector('.supplimental .play-button') end @@ -17,7 +17,7 @@ feature "Asciicast lists" do visit popular_path expect(page).to have_content(/Popular Asciicasts/i) - expect_browse_section + expect_browse_links expect(page).to have_link("##{asciicast.id}") expect(page).to have_selector('.supplimental .play-button') end diff --git a/spec/features/home_spec.rb b/spec/features/home_spec.rb index d8878b5..5a0ebcc 100644 --- a/spec/features/home_spec.rb +++ b/spec/features/home_spec.rb @@ -8,10 +8,9 @@ feature "Homepage", :js => true do visit root_path expect(page).to have_content(/Recent Asciicasts/i) - page.save_screenshot 'a.png' expect(page).to have_link('Browse') expect(page).to have_link('Record') - expect_browse_section + expect_browse_links expect(page).to have_link("##{asciicast.id}") expect(page).to have_selector('#about .play-button') end diff --git a/spec/support/feature_helpers.rb b/spec/support/feature_helpers.rb index effe644..3e7d330 100644 --- a/spec/support/feature_helpers.rb +++ b/spec/support/feature_helpers.rb @@ -34,7 +34,7 @@ module AsciiIo end end - def expect_browse_section + def expect_browse_links expect(page).to have_link('All') expect(page).to have_link('Popular') end