Sha256: 7eff5a13525ae215f0e39ecb435c5c9c8b2f8fc640f0caba379491f6bc15e912

Contents?: true

Size: 261 Bytes

Versions: 6

Compression:

Stored size: 261 Bytes

Contents

class UsersAndPagesScenario < Scenario::Base
  uses :pages, :users
  
  def load
    UserActionObserver.current_user = users(:admin)
    Page.update_all "created_by_id = #{user_id(:admin)}, updated_by_id = #{user_id(:admin)}"
    create_page "No User"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
radiant-0.6.5.1 spec/scenarios/users_and_pages_scenario.rb
radiant-0.6.5 spec/scenarios/users_and_pages_scenario.rb
radiant-0.6.7 spec/scenarios/users_and_pages_scenario.rb
radiant-0.6.6 spec/scenarios/users_and_pages_scenario.rb
radiant-0.6.9 spec/scenarios/users_and_pages_scenario.rb
radiant-0.6.8 spec/scenarios/users_and_pages_scenario.rb