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-1.1.3 features/step_definitions/manage_sites_steps.rb
360_services-1.1.2 features/step_definitions/manage_sites_steps.rb
360_services-1.1.1 features/step_definitions/manage_sites_steps.rb
360_services-1.0.10 features/step_definitions/manage_sites_steps.rb
360_services-1.1.0 features/step_definitions/manage_sites_steps.rb
360_services-1.0.9 features/step_definitions/manage_sites_steps.rb
360_services-1.0.8 features/step_definitions/manage_sites_steps.rb
360_services-1.0.7 features/step_definitions/manage_sites_steps.rb
360_services-1.0.6 features/step_definitions/manage_sites_steps.rb
360_services-1.0.5 features/step_definitions/manage_sites_steps.rb
360_services-1.0.4 features/step_definitions/manage_sites_steps.rb
360_services-1.0.3 features/step_definitions/manage_sites_steps.rb
360_services-1.0.2 features/step_definitions/manage_sites_steps.rb
360_services-0.0.8 features/step_definitions/manage_sites_steps.rb
360_services-0.0.7 features/step_definitions/manage_sites_steps.rb
360_services-0.0.6 features/step_definitions/manage_sites_steps.rb
360_services-0.0.5 features/step_definitions/manage_sites_steps.rb
360_services-1.0.1 features/step_definitions/manage_sites_steps.rb
360_services-1.0.0 features/step_definitions/manage_sites_steps.rb
360_services-0.0.4 features/step_definitions/manage_sites_steps.rb