spec/unit/axiom/function/predicate/inclusion/methods/include_spec.rb in axiom-0.1.1 vs spec/unit/axiom/function/predicate/inclusion/methods/include_spec.rb in axiom-0.2.0
- old
+ new
@@ -4,11 +4,15 @@
require File.expand_path('../fixtures/classes', __FILE__)
describe Function::Predicate::Inclusion::Methods, '#include' do
subject { object.include(other) }
+ let(:object) { described_class.new.freeze }
let(:described_class) { InclusionMethodsSpecs::Object }
- let(:other) { [true, false] }
- let(:object) { described_class.new }
+ let(:other) { [true, false].freeze }
it { should be_instance_of(Function::Predicate::Inclusion) }
+
+ its(:left) { should be(object) }
+
+ its(:right) { should be(other) }
end