Skip to content

Commit

Permalink
Missing test for last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
David Padilla committed Sep 21, 2011
1 parent 3778acd commit 6effc6e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/lib/rails3-jquery-autocomplete/orm/active_record_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class ActiveRecordTest < Test::Unit::TestCase
context 'no order is specified' do
should 'return the order clause by the field ASC' do
assert_equal "field ASC", get_autocomplete_order(:field, {})
end
end

context 'a different model is specified' do
should 'return the order clause by the table_name.field ASC' do
model = Object.new
mock(model).table_name { 'table_name' }
assert_equal "table_name.field ASC", get_autocomplete_order(:field, {}, model)
end
end
end
end
end
Expand Down Expand Up @@ -115,12 +115,12 @@ class Dog ; end
end

context '#postgres?' do
should 'return nil if PGConn is not defined' do
should 'return nil if PGconn is not defined' do
assert_nil self.postgres?
end

should 'return true if PGConn is defined' do
class ::PGConn ; end
should 'return true if PGconn is defined' do
class ::PGconn ; end

assert self.postgres?
end
Expand Down

0 comments on commit 6effc6e

Please sign in to comment.