Sha256: 8e8749e484e71a68fed55ae216ab9751c9ed8663580b97f5cc8f28955fd4589f

Contents?: true

Size: 758 Bytes

Versions: 15

Compression:

Stored size: 758 Bytes

Contents

Then /^the "([^"]*)" shard should have one user named "([^"]*)"$/ do |shard_name, user_name|
  # TODO - WTF?! - Why we need to instantiate a new proxy?
  Thread.current[:connection_proxy] = nil
  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(unescape("cd #{Rails.root.to_s} && RAILS_ENV=#{enviroment} #{command}"), false)
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ar-octopus-0.3.4 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.3.3 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.3.2 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.3.1 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.3.0 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.2.2 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.2.1 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.2.0 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.1.2 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.1.1 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.1.0 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.0.30 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.0.29 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.0.28 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.0.27 sample_app/features/step_definitions/seeds_steps.rb