Sha256: 80a4dab96d8870b666f6c3cb34c040be24492fa467c0ed3fc8d5e14f3e90cc81

Contents?: true

Size: 1.02 KB

Versions: 20

Compression:

Stored size: 1.02 KB

Contents

Then(/^the profile category should have: \"(.*)\" with: \"(.*)\"$/) do |attribute, value|
  @models["profile_category"].send(attribute).should == value
end

Then(/^the profile category should (?:be|have) (?:an? )?(.*)/) do |predicate|
  @models["profile_category"].should send("be_#{predicate.gsub(' ', '_')}")
end

Then(/^the profile category should not (?:be|have) (?:an? )?(.*)/) do |predicate|
  @models["profile_category"].should_not send("be_#{predicate.gsub(' ', '_')}")
end

Then(/^the profile category's (\S+) should (?:be|have) (?:an? )?(.*)/) do |method, predicate|
  @models["profile_category"].send(method).should send("be_#{predicate.gsub(' ', '_')}")
end

Then(/^the profile category's (\S+) should not (?:be|have) (?:an? )?(.*)/) do |method, predicate|
  @models["profile_category"].send(method).should_not send("be_#{predicate.gsub(' ', '_')}")
end

Then(/^the profile category's profile_categories: (\S+) should be \"(.*)\"/) do |method ,value|
  @models["profile_category"].item_definition.send(method).should == value
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
hookercookerman-amee-0.0.2 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.0.3 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.0.4 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.0.5 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.0.6 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.0.7 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.0.8 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.0.9 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.1.0 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.1.1 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.1.2 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.1.3 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.1.4 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.1.5 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.1.6 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.1.8 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.1.9 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.2.0 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.2.1 features/step_definitions/profile_category_steps.rb
hookercookerman-amee-0.6.0 features/step_definitions/profile_category_steps.rb