Sha256: 96ae55b835b5681d583e6e9fef63afa6289e3b510ad18a35f2b5fd4d13c4d1b5

Contents?: true

Size: 665 Bytes

Versions: 3

Compression:

Stored size: 665 Bytes

Contents

module RailsBlogEngine::AcceptanceHelperMethods
  # Put helper methods you need to be available in all acceptance specs here.

  # In our test application, any user counts as an administrator.
  def sign_in_as_admin
    saved_path = current_path
    visit '/users/sign_up'
    fill_in 'Email', :with => "sue@example.com"
    fill_in 'Password', :with => "password"
    fill_in 'Password confirmation', :with => "password"
    click_button 'Sign up'
    visit saved_path
  end
end

RSpec.configuration.include(RailsBlogEngine::AcceptanceHelperMethods,
                            :example_group =>
                              { :file_path => /spec\/acceptance/ })

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_blog_engine-0.0.4 spec/acceptance/support/helpers.rb
rails_blog_engine-0.0.3 spec/acceptance/support/helpers.rb
rails_blog_engine-0.0.2 spec/acceptance/support/helpers.rb