tinsep19/chibineko-rspec

View on GitHub
lib/chibineko/rspec/matcher.rb

Summary

Maintainability
A
0 mins
Test Coverage
# -*- coding: utf-8 -*-
require "rspec/expectations"

RSpec::Matchers.define :be_ok do
  match do |actual|
    actual.ok?
  end

  description do 
    "should be passed."
  end
  
  failure_message do |actual|
    "expected that #{actual.item} should be passed."
  end
end