spec/normalizy/rspec/matcher/description_spec.rb in normalizy-0.2.0 vs spec/normalizy/rspec/matcher/description_spec.rb in normalizy-1.0.0

- old
+ new

@@ -3,24 +3,25 @@ require 'rails_helper' RSpec.describe Normalizy::RSpec::Matcher, '.description' do let!(:matcher) { described_class.new :name } - before do - matcher.from :from - matcher.to :to - end - context 'with no :with expectation' do specify do + matcher.from :from + matcher.to :to + expect(matcher.description).to eq 'normalizy name from "from" to "to"' end end context 'with :with expectation' do - before { matcher.with :blank } - specify do + matcher.with :blank + + matcher.from :from + matcher.to :to + expect(matcher.description).to eq 'normalizy name with blank' end end end