Sha256: d0013f97d29ac66473f44257c42eae24cc5b731bf988a8b3644c0aa57f2c3e92
Contents?: true
Size: 973 Bytes
Versions: 3
Compression:
Stored size: 973 Bytes
Contents
require 'spec_helper' describe 'Tumblr API example', :type => :feature, :js => true do before do proxy.stub('http://blog.howmanyleft.co.uk/api/read/json').and_return( :jsonp => { :posts => [ { 'regular-title' => 'News Item 1', 'url-with-slug' => 'http://example.com/news/1', 'regular-body' => 'News item 1 content here' }, { 'regular-title' => 'News Item 2', 'url-with-slug' => 'http://example.com/news/2', 'regular-body' => 'News item 2 content here' } ] }) end it 'should show news stories' do visit '/tumblr_api.html' expect(page).to have_link('News Item 1', :href => 'http://example.com/news/1') expect(page).to have_content('News item 1 content here') expect(page).to have_link('News Item 2', :href => 'http://example.com/news/2') expect(page).to have_content('News item 2 content here') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puffing-billy-0.4.1 | spec/features/examples/tumblr_api_spec.rb |
puffing-billy-0.4.0 | spec/features/examples/tumblr_api_spec.rb |
puffing-billy-0.3.0 | spec/features/examples/tumblr_api_spec.rb |