spec/spec-i18n/matchers/satisfy_spec.rb in rspec-i18n-1.1.0 vs spec/spec-i18n/matchers/satisfy_spec.rb in rspec-i18n-1.2.0

- old
+ new

@@ -1,18 +1,17 @@ require 'spec_helper' describe "should satisfy { block }" do before(:each) do - @expected_matcher = { 'matchers' => { 'satisfy' => 'satisfazer'} } - portuguese_language(@expected_matcher) + @keywords = { 'matchers' => { 'satisfy' => 'satisfazer|satisfaz'} } + stub_language!("pt", @keywords) Spec::Matchers.register_all_matchers end it 'should trasnlate the satisfy matcher' do - values = @expected_matcher['matchers']['satisfy'].split('|') - values.each do |value_method| - Object.instance_methods.should be_include(value_method) + [:satisfazer, :satisfazer].each do |translated_matcher| + methods.to_symbols.should include(translated_matcher) end end it "should pass if block returns true" do true.should satisfazer { |val| val } \ No newline at end of file