Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887735
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, Aug 10, 4:46 AM
Size
421 B
Mime Type
text/x-ruby
Expires
Tue, Aug 12, 4:46 AM (12 h, 11 m)
Engine
blob
Format
Raw Data
Handle
229678
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