Sha256: 86c92cd9db37729a72b74748c939537da70239cc3d3307126d276365e14a3750

Contents?: true

Size: 708 Bytes

Versions: 2

Compression:

Stored size: 708 Bytes

Contents

require 'spec_helper'

module Spec
  module Matchers
    describe "eql" do
      
      before(:each) do
        @keywords = {'matchers' => {'eql' => 'igl'}}
        stub_language!("pt", @keywords)
        Spec::Matchers.register_all_matchers
      end
      
      it "should have eql matchers translated" do
        methods.to_symbols.should include(:igl)
      end
      
      it "should have eql? matchers translated" do
        methods.to_symbols.should include(:igl?)
      end
      
      it "should match when actual.eql?(expected)" do
        1.should igl(1)
      end
      
      it "should not match when !actual.eql?(expected)" do
        1.should_not igl(2)
      end
      
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-i18n-1.2.1 spec/spec-i18n/matchers/eql_spec.rb
rspec-i18n-1.2.0 spec/spec-i18n/matchers/eql_spec.rb