Sha256: f19321dc6d9b154abadc65fff78f0c9b908f5ebcfc0fb41993736e5f1ecdd4bd

Contents?: true

Size: 796 Bytes

Versions: 22

Compression:

Stored size: 796 Bytes

Contents

And /^I find the group with the name "([^\"]*)"$/ do |name|
  @group = Sorenson::Services::Group.find_by_name(name)
end

When /^I create a group named "([^\"]*)"$/ do |name|
  @group = Sorenson::Services::Group.create(name)
end

When /^I reload the group$/ do
  @group = Sorenson::Services::Group.find(@group.id)
end

Then /^I should be able to find the group$/ do
  @group = Sorenson::Services::Group.find(@group.id)
end

Then /^the group's name should be "(.*)"/ do |name|
  @group.name.should == name
end

And /^I get all groups$/ do
  @groups = Sorenson::Services::Group.all
end

Then /^I delete the group if it was found$/ do
  @group.delete if @group
end

Then /^I delete the group$/ do
  @group.delete
end

Then /^the group list should contain the group$/ do
  @groups.include?(@group)
end

Version data entries

22 entries across 22 versions & 1 rubygems

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