Sha256: 50be9fe99f07ddb808e448a5c9a11f6056f7647fe54c49d469bd68dbc721239c

Contents?: true

Size: 872 Bytes

Versions: 3

Compression:

Stored size: 872 Bytes

Contents

Given /^a configuration of:$/ do |config|
  ActiveAdmin.unload!
  File.open(ACTIVE_ADMIN_TEST_CONFIG, 'w+'){|f| f << config }
  Rails.application.reload_routes!
end

Given /^an index configuration of:$/ do |config|
  ActiveAdmin.unload!
  File.open(ACTIVE_ADMIN_TEST_CONFIG, 'w+'){|f| f << config }
  Rails.application.reload_routes!

  And 'I am logged in'
  When "I am on the index page for posts"
end

Given /^a show configuration of:$/ do |config|
  ActiveAdmin.unload!
  File.open(ACTIVE_ADMIN_TEST_CONFIG, 'w+'){|f| f << config }
  Rails.application.reload_routes!

  And 'I am logged in'
  When "I am on the index page for posts"
  And 'I follow "View"'
end

Given /^"([^"]*)" contains:$/ do |filename, contents|
  require 'fileutils'
  filepath = Rails.root + filename
  FileUtils.mkdir_p File.dirname(filepath)
  File.open(filepath, 'w+'){|f| f << contents }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin-0.2.2 features/step_definitions/configuration_steps.rb
activeadmin-0.2.1 features/step_definitions/configuration_steps.rb
activeadmin-0.2.0 features/step_definitions/configuration_steps.rb