spec/unit/assertion/translator_spec.rb in assertion-0.2.3 vs spec/unit/assertion/translator_spec.rb in assertion-0.2.4

- old
+ new

@@ -18,17 +18,10 @@ subject { translator.assertion } it { is_expected.to eql IsFoo } end # describe #assertion - describe "#scope" do - - subject { translator.scope } - it { is_expected.to eql [:assertion, :is_foo] } - - end # describe #scope - describe "#call" do shared_examples "translating" do |input, opts| subject { translator.call(input) } @@ -47,13 +40,11 @@ translator.call input, attributes end end # shared examples - it_behaves_like "translating", true, to: "truthy" - it_behaves_like "translating", "ok", to: "truthy" - it_behaves_like "translating", false, to: "falsey" - it_behaves_like "translating", nil, to: "falsey" + it_behaves_like "translating", :truthy, to: "truthy" + it_behaves_like "translating", :falsey, to: "falsey" end # describe #call end # describe Assertion::Translator