Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
scheduled upgrade maintenance
Open sidebar
Martin Markech
refinerycms-acts-as-indexed
Commits
3eb1ea48
Commit
3eb1ea48
authored
Aug 19, 2015
by
Brice Sanchez
Browse files
Fix tests
parent
f4adbb5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/features/refinery/acts_as_indexed/admin/search_spec.rb
View file @
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment