Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bosko committed May 9, 2013
1 parent 0eed324 commit a17ac71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -25,6 +25,7 @@ GEM
erubis (2.7.0)
i18n (0.6.1)
multi_json (1.5.0)
rake (10.0.3)
rspec (2.12.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
Expand All @@ -39,5 +40,6 @@ PLATFORMS
ruby

DEPENDENCIES
rake
rmre!
rspec
1 change: 1 addition & 0 deletions rmre.gemspec
Expand Up @@ -18,6 +18,7 @@ Gem::Specification.new do |s|

s.add_dependency "activerecord", ">= 3.0.0"
s.add_dependency "erubis"
s.add_development_dependency "rake"
s.add_development_dependency "rspec"

s.files = `git ls-files`.split("\n")
Expand Down
8 changes: 4 additions & 4 deletions spec/rmre/migrator_spec.rb
Expand Up @@ -2,11 +2,11 @@

module Rmre
describe Migrator do
let (:src_connection) do |src_con|
let(:src_connection) do |src_con|
src_con = double("source_connection")
end

let (:tgt_connection) do |tgt_con|
let(:tgt_connection) do |tgt_con|
tgt_con = double("target_connection")
end

Expand Down Expand Up @@ -53,8 +53,8 @@ module Rmre
context "initialization" do
it "stores connection options in source and target modules" do
Migrator.new(src_db_opts, tgt_db_opts)
Source.connection_options.should == src_db_opts
Target.connection_options.should == tgt_db_opts
Source.connection_options.should be_eql(src_db_opts)
Target.connection_options.should be_eql(tgt_db_opts)
end

it "passes connection options to source and target connections" do
Expand Down

0 comments on commit a17ac71

Please sign in to comment.