spec/unit/axiom/sql/generator/relation/visited_spec.rb in axiom-sql-generator-0.1.0 vs spec/unit/axiom/sql/generator/relation/visited_spec.rb in axiom-sql-generator-0.2.0

- old
+ new

@@ -3,16 +3,16 @@ require 'spec_helper' describe SQL::Generator::Relation, '#visited?' do subject { object.visited? } - let(:id) { Attribute::Integer.new(:id) } - let(:name) { Attribute::String.new(:name) } - let(:age) { Attribute::Integer.new(:age, :required => false) } - let(:header) { [ id, name, age ] } - let(:body) { [ [ 1, 'Dan Kubb', 35 ] ].each } - let(:base_relation) { Relation::Base.new('users', header, body) } - let(:object) { described_class.new } + let(:id) { Attribute::Integer.new(:id) } + let(:name) { Attribute::String.new(:name) } + let(:age) { Attribute::Integer.new(:age, required: false) } + let(:header) { [id, name, age] } + let(:body) { [[1, 'Dan Kubb', 35]].each } + let(:base_relation) { Relation::Base.new('users', header, body) } + let(:object) { described_class.new } context 'when name is nil' do it_should_behave_like 'an idempotent method' it { should be(false) }