Sha256: 25a928ed04e0d50685aec0a1a29623018a599b01ff26589b02b4b181db49ff27
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
require 'rack/test' require File.join(File.dirname(__FILE__), '/../example/app.rb') include Rack::Test::Methods describe 'Gurk::Example' do before do Gurk.stub(:view_path).and_return File.join('spec', 'example', 'app', 'views') Gurk.stub(:feature_paths).and_return Dir.glob("#{Dir.pwd}/spec/example/features/*.feature") request '/' end def app Gurk.run end it 'returns homepage successfully' do expect(last_response.status).to eq(200) end it 'shows the title' do expect(last_response.body).to include ('home') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gurk-0.0.1 | spec/gurk/example_spec.rb |