madetech/market_town

View on GitHub
checkout/lib/market_town/checkout/contracts/shared_examples.rb

Summary

Maintainability
A
0 mins
Test Coverage
shared_examples_for 'a command method' do
  it { is_expected.to be_nil }
end

shared_examples_for 'a query method' do
  it { is_expected.to be_a Hash }
end

shared_examples_for 'a boolean query method' do
  it { is_expected.to match(true).or(match(false)) }
end