Sha256: 4b3014763cd86aa77374793b519aacd1e18513b17426e4fb68a54c4cbf190030

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

Given /^a Rails app with mama cass installed$/ do
  steps %q{
    When I run "rails new sample-app"
      And I cd to "sample-app"
      And I append to "Gemfile" with: 
        """
        gem 'mama_cass', 
          :path => './../../../'
        """
      And I run "bundle install --local"
  }
end

Then /^cassandra should be installed$/ do
  steps %q{
    Then the following files should exist:
      | config/cassandra.yml              |
      | config/cassandra/cassandra.in.sh  |
      | config/cassandra/log4j.properties |
      | config/cassandra/storage-conf.xml |
      | config/initializers/cassandra.rb  |
      And the file "config/cassandra.yml" should contain "keyspace: sample_app_development"
      And the file "config/cassandra.yml" should contain "keyspace: sample_app_test"
      And the file "config/cassandra/storage-conf.xml" should contain "sample_app_development" 
      And the file "config/cassandra/storage-conf.xml" should contain "sample_app_test" 
      And the following directories should exist:
        | cassandra                  |
        | cassandra/server           |
        | cassandra/server/bin       |
        | cassandra/server/conf      |
        | cassandra/server/interface |
        | cassandra/server/javadoc   |
        | cassandra/server/lib       |
  }
end

Given /^a Rails app with cassandra installed via mama cass$/ do
  steps %q{
    Given a Rails app with mama cass installed
      And I run "rails g mama_cass:install"
  }
end

When /^I stop cassandra$/ do
  stop_processes!
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mama_cass-0.0.2 features/step_definitions/rails_steps.rb