Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1966850
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 17, 1:27 AM
Size
414 B
Mime Type
text/x-ruby
Expires
Tue, May 19, 1:27 AM (22 h, 39 m)
Engine
blob
Format
Raw Data
Handle
377611
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
(
ClientsController
)
.
to
receive
(
:current_user
)
{
user
}
host
.
users
<<
user
end
describe
'#index'
do
it
'fetches the host'
do
get
root_path
expect
(
response
.
body
)
.
to
match
(
host
.
name
)
end
end
end
Event Timeline
Log In to Comment