Last active
August 29, 2015 14:17
-
-
Save ryankbales/b67d5dfa7428fe6eadba to your computer and use it in GitHub Desktop.
Feature Spec bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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