Sha256: f391336bffae89bada008a74bfc1b436607f79c9496759cd096be59e5da16a34

Contents?: true

Size: 640 Bytes

Versions: 8

Compression:

Stored size: 640 Bytes

Contents

Then /^the "([^"]*)" shard should have one user named "([^"]*)"$/ do |shard_name, user_name|
  User.using(shard_name.to_sym).where(:name => user_name).count.should == 1
end

Then /^the version of "([^"]*)" shard should be "([^"]*)"$/ do |shard_name, version|
  ab = ActiveRecord::Base.using(shard_name.to_sym).connection.select_value("select * from schema_migrations order by version desc limit 1;")
  version = "" if version == "nil"
  ab.to_s.should == version
end

When /^I run inside my Rails project "([^"]*)" with enviroment "([^"]*)"$/ do |command, enviroment|
  run("cd #{Rails.root.to_s} && RAILS_ENV=#{enviroment} #{command}")
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ar-octopus-0.8.2 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.8.1 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.8.0 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.7.0 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.6.1 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.6.0 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.5.0 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.4.0 sample_app/features/step_definitions/seeds_steps.rb