Skip to content

Instantly share code, notes, and snippets.

@piperniehaus
Created March 18, 2015 16:35
Show Gist options
  • Save piperniehaus/589483be520ae60ac92a to your computer and use it in GitHub Desktop.
Save piperniehaus/589483be520ae60ac92a to your computer and use it in GitHub Desktop.
require 'rails_helper'
feature 'Creating weeks' do
scenario 'can create a week' do
visit '/weeks'
click_link 'New week'
fill_in 'Year', with: 2015
fill_in 'Month', with: 5
fill_in 'Week', with: 1
fill_in 'Start date', with: '5/4/15'
click_button 'Create Week'
# save_and_open_page
expect(page).to have_content('2015/5-1 has been created')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment