Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F462162
clients_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 8:28 PM
Size
421 B
Mime Type
text/x-ruby
Expires
Tue, May 20, 8:28 PM (1 d, 47 m)
Engine
blob
Format
Raw Data
Handle
220541
Attached To
rARCHIVING archiving
clients_spec.rb
View Options
require
'spec_helper'
describe
ClientsController
do
let
(
:host
)
{
FactoryGirl
.
create
(
:host
,
:with_client
)
}
let
(
:user
)
{
FactoryGirl
.
create
(
:user
)
}
before
do
allow_any_instance_of
(
ApplicationController
)
.
to
receive
(
:current_user
)
{
user
}
host
.
users
<<
user
end
describe
'#index'
do
it
'fetches the host'
do
get
clients_path
expect
(
response
.
body
)
.
to
match
(
host
.
name
)
end
end
end
Event Timeline
Log In to Comment