Permalink
Browse files

Release v2.3.4

  • Loading branch information...
1 parent e47b818 commit 249131400c2b0cf2989e93e7e7ac7f9268d7e1be @binarylogic committed Sep 12, 2009
Showing with 7 additions and 1 deletion.
  1. +6 −0 spec/named_scopes/conditions_spec.rb
  2. +1 −1 spec/spec_helper.rb
View
6 spec/named_scopes/conditions_spec.rb
@@ -292,4 +292,10 @@
User.company_id_null.count.should == 1
User.company_id_not_null.count.should == 0
end
+
+ it "should fix bug for issue 26" do
+ count1 = User.id_ne(10).username_not_like("root").count
+ count2 = User.id_ne(10).username_not_like("root").count
+ count1.should == count2
+ end
end
View
2 spec/spec_helper.rb
@@ -6,7 +6,7 @@
ENV['TZ'] = 'UTC'
Time.zone = 'Eastern Time (US & Canada)'
-ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => ":memory:")
+ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
ActiveRecord::Base.configurations = true
ActiveRecord::Schema.verbose = false

0 comments on commit 2491314

Please sign in to comment.