Sha256: 7bac1c4d3042315c313f41dacd2fccc79088a48942a9078e1397b8e4e0ddf911
Contents?: true
Size: 473 Bytes
Versions: 5
Compression:
Stored size: 473 Bytes
Contents
require 'spec_helper' require 'monthify' describe Monthify::CoreExt::Object do it 'is included in Object' do Object.should be_a(Monthify::CoreExt::Object) end end describe ::Object do describe "#to_month" do it 'returns the result of Kernel::Month()' do receiver = ::Object.new result = double(:result) ::Kernel.should_receive(:Month).with(receiver). and_return(result) receiver.to_month.should == result end end end
Version data entries
5 entries across 5 versions & 1 rubygems