Skip to content

Instantly share code, notes, and snippets.

@ryankbales
Last active August 29, 2015 14:17
Show Gist options
  • Save ryankbales/b67d5dfa7428fe6eadba to your computer and use it in GitHub Desktop.
Save ryankbales/b67d5dfa7428fe6eadba to your computer and use it in GitHub Desktop.
Feature Spec bug
require 'spec_helper'
require 'pry'
feature "User interacts with the queue" do
scenario "user adds and reorders videos in the queue" do
dramas = Fabricate(:category)
dances_with = Fabricate(:video, title: "Dances With Wolves", category: dramas)
donnie = Fabricate(:video, title: "Donnie Darko", category: dramas)
village = Fabricate(:video, title: "The Village", category: dramas)
sign_in
find("a[href='/videos/#{dances_with.id}']").click
page.should have_content(dances_with.title)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment