Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix consistently failing spec on linux.

  • Loading branch information...
commit 71b5169e46816d23d629ab2cf587c1af59f2b394 1 parent c4622a4
pete higgins authored

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. +5 2 core/spec/requests/refinery/admin/search_spec.rb
7 core/spec/requests/refinery/admin/search_spec.rb
@@ -6,13 +6,16 @@ module Refinery
6 6
7 7 context "when searched item exists" do
8 8 describe "image extension" do
9   - before(:each) { FactoryGirl.create(:image) }
  9 + let!(:image) { FactoryGirl.create(:image) }
10 10
11 11 it "returns found image" do
12 12 visit refinery.admin_images_path
13 13 fill_in "search", :with => "beach"
14 14 click_button "Search"
15   - page.should have_selector("img[src*='beach.jpeg']")
  15 +
  16 + within ".actions" do
  17 + page.should have_selector("a[href='#{image.url}']")
  18 + end
16 19 end
17 20 end
18 21

0 comments on commit 71b5169

Please sign in to comment.
Something went wrong with that request. Please try again.