Sha256: adfead37f2a969dd362d7e74bd6cce11f351e5b03b7f9d36983c490e35962118

Contents?: true

Size: 263 Bytes

Versions: 7

Compression:

Stored size: 263 Bytes

Contents

require 'bacon'
require 'muack'

include Muack::API

describe 'Hello' do
  before{ Muack.reset  }
  after { Muack.verify }

  should 'say world!' do
    str = 'Hello'
    mock(str).say('!'){ |arg| "World#{arg}" }
    str.say('!').should.equal 'World!'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
muack-0.7.3 test/test_readme.rb
muack-0.7.2 test/test_readme.rb
muack-0.7.1 test/test_readme.rb
muack-0.7.0 test/test_readme.rb
muack-0.5.2 test/test_readme.rb
muack-0.5.1 test/test_readme.rb
muack-0.5.0 test/test_readme.rb