Sha256: ec0d3a17a19d9f6f39a13eb198c75437e3533aba961bdde2e0db8c97d2e49b39

Contents?: true

Size: 485 Bytes

Versions: 27

Compression:

Stored size: 485 Bytes

Contents

# encoding: utf-8

Given /^an activerecord class that uses the '([^\']*)' table$/ do |name|
  @mountee_klass = Class.new(ActiveRecord::Base)
  @mountee_klass.table_name = name
end

Given /^an instance of the activerecord class$/ do
  @instance = @mountee_klass.new
end

When /^I save the active record$/ do
  @instance.save!
end

When /^I reload the active record$/ do
  @instance = @instance.class.find(@instance.id)
end

When /^I delete the active record$/ do
  @instance.destroy
end

Version data entries

27 entries across 27 versions & 6 rubygems

Version Path
durran-carrierwave-0.3.2.3 features/step_definitions/activerecord_steps.rb
jnicklas-carrierwave-0.3.3 features/step_definitions/activerecord_steps.rb
thorsson_carrierwave-0.4.12 features/step_definitions/activerecord_steps.rb
thorsson_carrierwave-0.4.11 features/step_definitions/activerecord_steps.rb
thorsson_carrierwave-0.4.10 features/step_definitions/activerecord_steps.rb
thorsson_carrierwave-0.4.9 features/step_definitions/activerecord_steps.rb
thorsson_carrierwave-0.4.8 features/step_definitions/activerecord_steps.rb
thorsson_carrierwave-0.4.6 features/step_definitions/activerecord_steps.rb
thorsson_carrierwave-0.4.5 features/step_definitions/activerecord_steps.rb
samlown-carrierwave-0.4.5 features/step_definitions/activerecord_steps.rb
dsturnbull-carrierwave-0.4.9 features/step_definitions/activerecord_steps.rb
dsturnbull-carrierwave-0.4.8 features/step_definitions/activerecord_steps.rb
dsturnbull-carrierwave-0.4.7 features/step_definitions/activerecord_steps.rb
carrierwave-0.4.5 features/step_definitions/activerecord_steps.rb
dsturnbull-carrierwave-0.4.6 features/step_definitions/activerecord_steps.rb
dsturnbull-carrierwave-0.4.5 features/step_definitions/activerecord_steps.rb
carrierwave-0.4.4 features/step_definitions/activerecord_steps.rb
durran-carrierwave-0.4.3 features/step_definitions/activerecord_steps.rb
carrierwave-0.4.3 features/step_definitions/activerecord_steps.rb
carrierwave-0.4.2 features/step_definitions/activerecord_steps.rb