Sha256: d7133ff19f3bcba999419af76dd7534ec114c65fe93b895fa6fefe318e75d89d
Contents?: true
Size: 682 Bytes
Versions: 8
Compression:
Stored size: 682 Bytes
Contents
require 'cucumber/rspec/doubles' # Set up the mocks. Ookla would approve. Cistern.formatter = Cistern::Formatter::AwesomePrint Ey::Core::Client.mock! Ey::Core::Client::Mock.timeout = 0.1 Ey::Core::Client::Mock.poll_interval = 0 Ey::Core::Client::Real.timeout = 3 Ey::Core::Client::Real.poll_interval = 0 Before do # Reset the mocked API before every scenario Ey::Core::Client::Mock.reset! # Stub out `#core_client` on all subcommands to ensure that they're using # the mocked client. Otherwise, everything turns to calamity, because the # mocked API is silly. allow_any_instance_of(Ey::Core::Cli::Subcommand). to receive(:core_client). and_return(client) end
Version data entries
8 entries across 8 versions & 2 rubygems