Sha256: d3ae75d035823049f509a272092a6caa5f4d3727c9edd247bc78983e68f384a3

Contents?: true

Size: 636 Bytes

Versions: 15

Compression:

Stored size: 636 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} && RAILS_ENV=#{enviroment} #{command}")
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
ar-octopus-ruby-3-0.11.3 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-ruby-3-0.11.2 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.10.2 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.10.1 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.10.0 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-master-0.9.2.1 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.9.2 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.9.1 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.9.0 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.8.6 sample_app/features/step_definitions/seeds_steps.rb
misha-ar-octopus-0.8.7 sample_app/features/step_definitions/seeds_steps.rb
misha-ar-octopus-0.8.5 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.8.5 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.8.4 sample_app/features/step_definitions/seeds_steps.rb
ar-octopus-0.8.3 sample_app/features/step_definitions/seeds_steps.rb