Sha256: afa11c78aa46c8f2325ea4271ed1c363076b53982460fff2af5345f83cc9e86b
Contents?: true
Size: 672 Bytes
Versions: 2
Compression:
Stored size: 672 Bytes
Contents
require 'spec_helper' describe "should satisfy { block }" do before(:each) do @keywords = { 'matchers' => { 'satisfy' => 'satisfazer|satisfaz'} } stub_language!("pt", @keywords) Spec::Matchers.register_all_matchers end it 'should trasnlate the satisfy matcher' do [: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 } true.should satisfazer do |val| val end end it "should fail if block returns false" do false.should_not satisfazer { |val| val } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-i18n-1.2.1 | spec/spec-i18n/matchers/satisfy_spec.rb |
rspec-i18n-1.2.0 | spec/spec-i18n/matchers/satisfy_spec.rb |