tack2us/spec/features/lists_pastes_spec.rb

17 lines
340 B
Ruby
Raw Normal View History

2014-02-15 01:46:22 -05:00
require 'spec_helper'
feature 'Lists pastes' do
let(:paste) { FactoryGirl.create(:paste) }
before do
visit new_paste_path
fill_in 'Content', with: paste.content
click_button 'Paste it!'
visit pastes_path
end
subject { page }
scenario 'shows paste on index' do
should have_content(paste.created_at)
end
end