Sha256: 5834cc3b7f3750e08c3a5d80be0613c90900cafdc81ad7a73baceacb388866c4
Contents?: true
Size: 431 Bytes
Versions: 5
Compression:
Stored size: 431 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require File.expand_path('../fixtures/classes', __FILE__) describe Function::Predicate, '#inverse' do subject { object.inverse } let(:object) { described_class.new(1, 1) } specify { expect { subject }.to raise_error(NoMethodError) } it 'calls the class inverse method' do described_class.should_receive(:inverse).and_return(described_class) should eql(object) end end
Version data entries
5 entries across 5 versions & 2 rubygems