Sha256: 6b7aa04164b245632ffbbddddb2d6ea4ec08e76c59dd3e47f253f9af5d63eb44

Contents?: true

Size: 585 Bytes

Versions: 6

Compression:

Stored size: 585 Bytes

Contents

module Refinery
  module Authentication
    module Devise
      module FeatureMacros

        def refinery_login_with_devise(factory)
          let!(:logged_in_user) { FactoryGirl.create(factory) }

          before do
            visit refinery.login_path

            fill_in "Username or email", with: logged_in_user.username
            fill_in "Password", with: "refinerycms"

            click_button "Sign in"
          end
        end

      end
    end
  end
end

RSpec.configure do |config|
  config.extend Refinery::Authentication::Devise::FeatureMacros, type: :feature
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-authentication-devise-2.0.0 spec/support/refinery/authentication/devise/feature_macros.rb
refinerycms-authentication-devise-1.0.4 spec/support/refinery/authentication/devise/feature_macros.rb
refinerycms-authentication-devise-1.0.3 spec/support/refinery/authentication/devise/feature_macros.rb
refinerycms-authentication-devise-1.0.2 spec/support/refinery/authentication/devise/feature_macros.rb
refinerycms-authentication-devise-1.0.1 spec/support/refinery/authentication/devise/feature_macros.rb
refinerycms-authentication-devise-1.0.0 spec/support/refinery/authentication/devise/feature_macros.rb