Skip to content

Instantly share code, notes, and snippets.

@houhoulis
Created March 7, 2018 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save houhoulis/97793590b9db1941f2d4f025613089f5 to your computer and use it in GitHub Desktop.
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`
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