Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adjust rails spec

  • Loading branch information...
commit a0e5e8e0600be02135a43f9fb8b42ec303b2246f 1 parent 2e3e88e
Sebastian von Conrad authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 spec/in_bed_with/rails_spec.rb
View
7 spec/in_bed_with/rails_spec.rb
@@ -11,9 +11,10 @@ class Application < Rails::Application
it 'should add in_bed_with helper through railtie' do
InBedWith.config { |config| config.analytics_property_id = 'UA-7654321-1' }
- ActionView::Base.should respond_to(:in_bed_with)
+ view = ActionView::Base.new
+ view.should respond_to(:in_bed_with)
- ActionView::Base.in_bed_with.should == InBedWith
- ActionView::Base.in_bed_with.analytics.should =~ /UA-7654321-1/
+ view.in_bed_with.should == InBedWith
+ view.in_bed_with.analytics.should =~ /UA-7654321-1/
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.