engine/features/step_definitions/site_steps.rb
Jacques Crocker fd6a13858c Cleaning up Cucumber features
- removing tag actions and replacing with background tasks
- adding some sample pickle steps
- added some basic pickle documentation
2010-08-01 03:37:49 -07:00

15 lines
414 B
Ruby

# Creates a Site record
#
# examples:
# - I have the site: "some site" set up
# - I have the site: "some site" set up with name: "Something", domain: "test2"
#
Given /^I have the site: "([^"]*)" set up(?: with #{capture_fields})?$/ do |site_factory, fields|
@site = Factory(site_factory, parse_fields(fields))
@site.should_not be_nil
@admin = @site.memberships.first.account
@admin.should_not be_nil
end