Created
February 6, 2013 04:03
-
-
Save micmmakarov/4720165 to your computer and use it in GitHub Desktop.
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" | |
puts "Hello, world!" | |
feature %q{ | |
As a user | |
I want to be able to create | |
New Meetings | |
} do | |
background do | |
visit "/" | |
end | |
scenario "I should be able to create meetings", :js => true do | |
page.should have_content "Create Meeting" | |
click_link "Create Meeting" | |
fill_in "meeting[name]", :with => 'Team up and drink vodka' | |
fill_in "meeting[place]", :with => 'Vodka Bar' | |
select "#{Date.current.year + 1}", :form => "meeting[date(1i)]" | |
click_button "Save" | |
page.should have_content "Meeting was successfully created." | |
end | |
scenario "I should be able to see the list of meetings", :js => true do | |
click_link "Create Meeting" | |
fill_in "meeting[name]", :with => 'Team up and drink vodka' | |
fill_in "meeting[place]", :with => 'Vodka Bar' | |
select "#{Date.current.year + 1}", :form => "meeting[date(1i)]" | |
click_button "Save" | |
visit "/" | |
click_link "Create Meeting" | |
fill_in "meeting[name]", :with => 'Play monopoly in Richmond' | |
fill_in "meeting[place]", :with => 'Richmond outer' | |
select "#{Date.current.year + 1}", :form => "meeting[date(1i)]" | |
click_button "Save" | |
visit "/" | |
page.should have_content "Team up and drink vodka" | |
page.should have_content "Play monopoly in Richmond" | |
end | |
end | |
feature %q{ | |
As a user | |
I want to be able to attend meetings | |
} do | |
background do | |
visit "/" | |
end | |
scenario "", :js => true do | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment