Created
March 7, 2018 06:53
-
-
Save houhoulis/97793590b9db1941f2d4f025613089f5 to your computer and use it in GitHub Desktop.
hypothetical feature spec for displaying auto-assign field in `spec/features/requirements_spec.rb`
This file contains hidden or 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 'rails_helper' | |
RSpec.describe "Requirements" do | |
# ... skipping over what's already in this file.... | |
describe "requirement index page" do | |
it "renders auto_assign field" do | |
event = create :event | |
task = create :task, event: event | |
skill = create :skill | |
create :requirement, task: task, skill: skill, auto_assign: true | |
visit requirements_path | |
expect(page).to have_content "Auto-Assign" | |
expect(page).to have_content "Yes" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment