Sha256: 0c30c075e786e27f331793647c56563541dc5983128654840b23c6f1debb068e

Contents?: true

Size: 430 Bytes

Versions: 23

Compression:

Stored size: 430 Bytes

Contents

When /^I create a new site with the name "([^\"]*)" and the description "([^\"]*)"$/ do |name, description|
  Sorenson::Services::Site.create(name, :description => description)
end

And /^I get all sites$/ do
  @sites = Sorenson::Services::Site.all
end

And /^I get the site named "([^\"]*)"$/ do |name|
  @site = Sorenson::Services::Site.find_by_name(name)
end

Then /^the site should have an id$/ do
  @site.id.should == '5'
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
360_services-0.0.3 features/step_definitions/manage_sites_steps.rb
360_services-0.0.2 features/step_definitions/manage_sites_steps.rb
360_services-0.0.1 features/step_definitions/manage_sites_steps.rb