Commit b18c41e1 authored by Josef Šimánek's avatar Josef Šimánek
Browse files

Merge pull request #7 from refinery/fix-tests

Fix tests
parents f4adbb5a 3eb1ea48
......@@ -2,7 +2,6 @@ require "spec_helper"
module Refinery
describe "search", :type => :feature do
refinery_login_with :refinery_user
shared_examples "no result search" do
it "returns no results" do
......@@ -39,7 +38,7 @@ module Refinery
it "returns found resource" do
fill_in "search", :with => "refinery"
click_button "Search"
expect(page).to have_content("Refinery Is Awesome.txt")
expect(page).to have_content("Refinery Is Awesome")
end
it_behaves_like "no result search"
......@@ -59,20 +58,5 @@ module Refinery
it_behaves_like "no result search"
end
describe "users extension" do
before do
FactoryGirl.create(:user, :username => "ugis")
visit refinery.admin_users_path
end
it "returns found user" do
fill_in "search", :with => "ugis"
click_button "Search"
expect(page).to have_content("ugis")
end
it_behaves_like "no result search"
end
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment