Sha256: 5ed09e6596121e13934136a2228e5cfa408088265a158074fb2cf0f408a117ab
Contents?: true
Size: 545 Bytes
Versions: 7
Compression:
Stored size: 545 Bytes
Contents
require 'spec_helper' module Merb::Global::Plural def self.parser @parser end end describe Merb::Global::Plural do describe '.which_form' do it 'should parse the plural' do plural = mock n = mock result = mock tree = mock _lambda = mock _lambda.expects(:call).with(n).returns(result) tree.expects(:to_lambda).returns(_lambda) Merb::Global::Plural.parser.expects(:parse).with(plural).returns(tree) Merb::Global::Plural.which_form(n, plural).should == result end end end
Version data entries
7 entries across 7 versions & 1 rubygems