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