Module: Tobacco::TestHelpers

Defined in:
lib/tobacco/test_helpers.rb

Instance Method Summary collapse

Instance Method Details

#mock_page_content(content) ⇒ Object



4
5
6
# File 'lib/tobacco/test_helpers.rb', line 4

def mock_page_content(content)
  Tobacco::Inhaler.any_instance.stub(:read).and_return(content)
end