Sha256: f0c12c96887c154e14ad9dcd96837f4d3d8876eeba8333215b4a3f90c77782cd

Contents?: true

Size: 1.19 KB

Versions: 11

Compression:

Stored size: 1.19 KB

Contents

Given /^a phone_number exists$/ do
  Factory(:phone_number)
end

When /^I visit (.*) page$/ do |target_page|
  case target_page
  when 'admin_data'
    visit '/admin_data'

  when 'quick_search'
    visit '/admin_data/quick_search/user'

  when 'advance_search'
    visit '/admin_data/advance_search/user'

  when 'user show'
    visit "/admin_data/klass/user/#{User.last.id}"

  when 'phone_number show'
    visit "/admin_data/klass/phone_number/#{PhoneNumber.last.id}"

  when 'newspaper show'
    visit "/admin_data/klass/newspaper/#{Newspaper.last.paper_id}"

  when 'user feed'
    visit "/admin_data/feed/user"

  when 'quick search page with association info'
    visit "/admin_data/quick_search/phone_number?base=user&children=phone_numbers&model_id=#{User.last.id}"

  when 'quick search with wrong klass name'
    visit "/admin_data/quick_search/phone_number_wrong"

  when 'quick search with wrong base klass name'
    visit "/admin_data/quick_search/phone_number?base=user_wrong&children=phone_numbers&model_id=#{User.last.id}"

  when 'quick search with wrong children klass name'
    visit "/admin_data/quick_search/phone_number?base=user&children=phone_numbers_wrong&model_id=#{User.last.id}"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
admin_data-1.1.10 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.9 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.8 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.7 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.6 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.5 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.4 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.3 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.2 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.1 test/rails_root/features/step_definitions/app_steps.rb
admin_data-1.1.0 test/rails_root/features/step_definitions/app_steps.rb