Sha256: 0fe441bd1a50e4af283f2653f7966d85b3c3051f8f2a2c6d038122d0e31cac5c

Contents?: true

Size: 468 Bytes

Versions: 52

Compression:

Stored size: 468 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/../../../example_helper")

describe Micronaut::Expectations do

  describe "#fail_with" do
  
    it "should handle just a message" do
      lambda { Micronaut::Expectations.fail_with "the message" }.should fail_with("the message")
    end
  
    it "should handle an Array" do
      lambda { Micronaut::Expectations.fail_with ["the message","expected","actual"] }.should fail_with("the message")
    end

  end

end

Version data entries

52 entries across 52 versions & 3 rubygems

Version Path
rsanheim-micronaut-0.1.3.2 examples/lib/micronaut/expectations/fail_with_example.rb
rsanheim-micronaut-0.1.4.1 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.0.5 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.0.6 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.0.7 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.0.9 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.0 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.1 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.2 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.3 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.4.1 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.4.2 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.4.3 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.4.4 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.4 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.5.2 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.5 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.6.1 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.6.8 examples/lib/micronaut/expectations/fail_with_example.rb
spicycode-micronaut-0.1.6.9.1 examples/lib/micronaut/expectations/fail_with_example.rb