Sha256: 562ced7fee7fc05cc26bc11a43e32530fe6c87438201b3f84c0019f0b66f236e
Contents?: true
Size: 970 Bytes
Versions: 2
Compression:
Stored size: 970 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', :js => true do visit '/tumblr_api.html' page.should have_link('News Item 1', :href => 'http://example.com/news/1') page.should have_content('News item 1 content here') page.should have_link('News Item 2', :href => 'http://example.com/news/2') page.should have_content('News item 2 content here') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puffing-billy-0.2.1 | spec/features/examples/tumblr_api_spec.rb |
puffing-billy-0.2.0 | spec/features/examples/tumblr_api_spec.rb |