Permalink
Browse files

Fix broken specs

  • Loading branch information...
vanstee committed Mar 2, 2013
1 parent 5a4b98a commit ff65fc29074711fabf12340cae70716dd43a8083
Showing with 4 additions and 4 deletions.
  1. +1 −1 spec/hovercraft/filters_spec.rb
  2. +3 −3 spec/hovercraft/helpers_spec.rb
@@ -21,7 +21,7 @@
end
it 'generates a global filter' do
- application.filters[:before][0][0] == //
+ application.filters[:before][0][0].should == //
end
it 'authenticates a request' do
@@ -29,14 +29,14 @@
describe '#warden' do
let(:warden) { stub }
- let(:env) { stub }
+ let(:env) { {} }
before { subject.stub(env: env) }
it 'finds the warden instance in the current session' do
- env.stub(:fetch).with('warden') { warden }
+ env['warden'] = warden
- subject.warden
+ subject.warden.should == warden
end
end

0 comments on commit ff65fc2

Please sign in to comment.