Sha256: a13a618236306afa9073368e08f6f3b6c4ec983f42f15ed669377a26ed51bae3

Contents?: true

Size: 304 Bytes

Versions: 8

Compression:

Stored size: 304 Bytes

Contents

Given /^there exists a(?:n?) audience "([^"]*)"$/ do |name|
  Factory :audience, :name => name
end

Given /^I have "([^"]*)" as my audience$/ do |name|
  audience = Audience.find_by_name(name) || Factory(:audience, :name => name)
  me = User.first
  me.profile.audience = audience
  me.profile.save!
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
scidea-schools-1.1 features/step_definitions/audience_steps.rb
scidea-schools-1.0.6 features/step_definitions/audience_steps.rb
scidea-schools-1.0.5 features/step_definitions/audience_steps.rb
scidea-schools-1.0.4 features/step_definitions/audience_steps.rb
scidea-schools-1.0.3 features/step_definitions/audience_steps.rb
scidea-schools-1.0.2 features/step_definitions/audience_steps.rb
scidea-schools-1.0.1 features/step_definitions/audience_steps.rb
scidea-schools-1.0.0 features/step_definitions/audience_steps.rb