spec/octopus/migration_spec.rb in ar-octopus-0.0.29 vs spec/octopus/migration_spec.rb in ar-octopus-0.0.30
- old
+ new
@@ -76,23 +76,20 @@
describe "when using replication" do
it "should run writes on master when you use replication" do
using_enviroment :production_replicated do
migrating_to_version 10 do
- Cat.using(:master).find_by_name("Replication").should_not be_nil
Cat.find_by_name("Replication").should be_nil
end
end
end
it "should run in all shards, master or another shards" do
using_enviroment :production_replicated do
migrating_to_version 11 do
[:slave4, :slave1, :slave2, :slave3].each do |sym|
- Cat.using(sym).find_by_name("Slaves").should_not be_nil
+ Cat.find_by_name("Slaves").should_not be_nil
end
-
- Cat.using(:master).find_by_name("Slaves").should be_nil
end
end
end
end
end