Sha256: 912978e261595fa2045a3f3bc2d4b0a0797138336f8f23969a5ef1d163b4edff

Contents?: true

Size: 254 Bytes

Versions: 9

Compression:

Stored size: 254 Bytes

Contents

require 'mocha'
require 'launchy'

World(Mocha::API)
 
Before('@mock_launchy') do
  Launchy::Browser.expects(:run).returns(true)
  # TODO: Mock saving file...
end
 
After('@mock_launchy') do
  begin
    mocha_verify
  ensure
    mocha_teardown
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mechanical-cuke-0.5.0 features/support/mocha.rb
mechanical-cuke-0.4.3 features/support/mocha.rb
mechanical-cuke-0.4.2 features/support/mocha.rb
mechanical-cuke-0.4.1 features/support/mocha.rb
mechanical-cuke-0.4.0 features/support/mocha.rb
mechanical-cuke-0.3.1 features/support/mocha.rb
mechanical-cuke-0.3.0 features/support/mocha.rb
mechanical-cuke-0.2.0 features/support/mocha.rb
mechanical-cuke-0.1.0 features/support/mocha.rb