Sha256: 8b0e7baf1b2f93a7f175f596df3806c1510a0e2c7e80f98c061c1164d0afffe8

Contents?: true

Size: 591 Bytes

Versions: 10

Compression:

Stored size: 591 Bytes

Contents

def mock_authenticator_with_authentication_returning_true
  #TODO use rspec double code here. This is a very bad hack
  AdminData::Authenticator.class_eval do
    def verify(*args)
      true
    end
  end
end

def mock_authenticator_with_authentication_returning_false
  AdminData::Authenticator.class_eval do
    def verify(*args)
      false
    end
  end
end

When /^mocked feed authentication returns true$/ do
  mock_authenticator_with_authentication_returning_true
end

When /^mocked feed authentication returns false$/ do
  mock_authenticator_with_authentication_returning_false
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
the_jobbook_admin_data-1.3.0a test/dummy/features/step_definitions/feed_steps.rb
admin_data-1.2.1 test/rails_root/features/step_definitions/feed_steps.rb
admin_data-1.2.0 test/rails_root/features/step_definitions/feed_steps.rb
admin_data-1.1.16 test/rails_root/features/step_definitions/feed_steps.rb
admin_data-1.1.15 test/rails_root/features/step_definitions/feed_steps.rb
admin_data-1.1.14 test/rails_root/features/step_definitions/feed_steps.rb
admin_data-1.1.13 test/rails_root/features/step_definitions/feed_steps.rb
admin_data-1.1.12 test/rails_root/features/step_definitions/feed_steps.rb
admin_data-1.1.11 test/rails_root/features/step_definitions/feed_steps.rb
admin_data-1.1.10 test/rails_root/features/step_definitions/feed_steps.rb