spec/unit/axiom/relation/materialized/empty_predicate_spec.rb in axiom-0.1.0 vs spec/unit/axiom/relation/materialized/empty_predicate_spec.rb in axiom-0.1.1
- old
+ new
@@ -3,20 +3,20 @@
require 'spec_helper'
describe Relation::Materialized, '#empty?' do
subject { object.empty? }
- let(:header) { [ [ :id, Integer ] ] }
+ let(:header) { [[:id, Integer]] }
let(:object) { described_class.new(header, body) }
context 'with a body containing no entries' do
let(:body) { [] }
it { should be(true) }
end
context 'with a body containing an entry' do
- let(:body) { [ [ 1 ] ] }
+ let(:body) { [[1]] }
it { should be(false) }
end
end