Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added interpolation spec, try to fix travis

  • Loading branch information...
commit 94e86a876c97bd9e8d69a1c3daaba4ebe9d74b86 1 parent 423bc58
@pyromaniac pyromaniac authored
View
7 .travis.yml
@@ -1,12 +1,11 @@
before_script:
- mysql -e 'create database activeuuid_test;'
- - psql -c 'create database activeuuid_test;' -U postgres
+ - psql -c 'create database activeuuid_test;'
rvm:
- - 1.9.2
- 1.9.3
- #- ruby-head
- #- rbx-19mode
+ - 2.0.0
+ - rbx-19mode
env:
- ACTIVERECORD_VERSION='~>3.1.0'
View
2  Rakefile
@@ -4,3 +4,5 @@ require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
+
+task :default => :spec
View
4 spec/lib/activerecord_spec.rb
@@ -107,6 +107,10 @@
its(:id) { should be_a UUIDTools::UUID }
end
+ context 'interpolation' do
+ specify { model.where("id = :id", id: article.id) }
+ end
+
context '.find' do
specify { model.find(article).should == article }
specify { model.find(id).should == article }
View
2  spec/support/database.yml
@@ -3,7 +3,7 @@ sqlite3:
database: ":memory:"
postgresql:
adapter: postgresql
- username: postgres
+ host: localhost
database: activeuuid_test
mysql:
adapter: mysql2

0 comments on commit 94e86a8

Please sign in to comment.
Something went wrong with that request. Please try again.