Skip to content

Commit

Permalink
adds test to render iframe layout for iframe=true
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Jurke committed Dec 1, 2014
1 parent c38627a commit d25fdb1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/controllers/libraries_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@
end
end

describe "with parameter 'iframe=true'" do
after(:each) do
subject.class.layout nil
end

it 'should render the iframe layout' do
get :index, iframe: true
assert_template layout: 'iframe'
end
end

describe '::focus' do
it 'should return trending libraries if no user is focused and no mode is set' do
@controller.stubs(:user_focused?).returns(false)
Expand Down

0 comments on commit d25fdb1

Please sign in to comment.