diff options
Diffstat (limited to 'spec/arel/table_spec.rb')
-rw-r--r-- | spec/arel/table_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/arel/table_spec.rb b/spec/arel/table_spec.rb index c2bcd3911a..dbb21d6d69 100644 --- a/spec/arel/table_spec.rb +++ b/spec/arel/table_spec.rb @@ -9,12 +9,12 @@ module Arel describe 'new' do it 'should accept an engine' do rel = Table.new :users, 'foo' - rel.engine.should == 'foo' + check rel.engine.should == 'foo' end it 'should accept a hash' do rel = Table.new :users, :engine => 'foo' - rel.engine.should == 'foo' + check rel.engine.should == 'foo' end end @@ -44,7 +44,7 @@ module Arel describe 'columns' do it 'returns a list of columns' do columns = @relation.columns - columns.length.should == 2 + check columns.length.should == 2 columns.map { |x| x.name }.sort.should == %w{ name id }.sort end end @@ -61,7 +61,7 @@ module Arel describe 'when given a', Symbol do it "manufactures an attribute if the symbol names an attribute within the relation" do column = @relation[:id] - column.name.should == 'id' + check column.name.should == 'id' column.should be_kind_of Attributes::Integer end end |