Sha256: 33a8528e0b09c2afcb811d37ad823f30992dfee498d27c4310c8d0e2127a9018

Contents?: true

Size: 480 Bytes

Versions: 21

Compression:

Stored size: 480 Bytes

Contents

shared_examples_for :it_can_make_assertions do
  describe '#assert' do
    it 'returns true if the condition is truthy' do
      subject.send(:assert, true, "Shouldn't see this message").should == true
    end

    it 'raises a Kookaburra::AssertionFailed exception if the condition is not truthy' do
      lambda { subject.send(:assert, false, "False isn't true, dummy.") } \
        .should raise_error(Kookaburra::AssertionFailed, "False isn't true, dummy.")
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
kookaburra-2.0.0 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-1.3.1 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-1.3.0 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-1.2.3 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-1.2.2 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-1.2.1 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-1.2.0 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-1.1.0 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-1.0.0 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.27.0 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.26.1 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.26.0 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.25.0 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.24.1 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.24.0 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.23.1 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.23.0 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.22.3 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.22.2 spec/support/shared_examples/it_can_make_assertions.rb
kookaburra-0.22.1 spec/support/shared_examples/it_can_make_assertions.rb