Sha256: ab1cd75457f58818f541d8694f0f4bd94afb217b48b1107eb4fc9436c9284286

Contents?: true

Size: 443 Bytes

Versions: 7

Compression:

Stored size: 443 Bytes

Contents

Then /^the "([^"]*)" field should contain the "([^"]*)" brand id$/ do |field, name|
  brand = Brand.where(:name => name).first
  Then %{the "#{field}" field should contain "#{brand.id}"}
end

And /^I send (.*) to "(.*)"$/ do |key, element|
  find_field(element).native.send_keys(key)
end

Given /^the "([^"]*)" brand has an address$/ do |brand_name|
  brand = Brand.find_by_name(brand_name)
  brand.address = Address.create
  brand.save!
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails3-jquery-autocomplete-0.9.0 integration/features/step_definitions/autocomplete_steps.rb
rails3-jquery-autocomplete-0.8.0 integration/features/step_definitions/autocomplete_steps.rb
rails3-jquery-autocomplete-0.7.5 integration/features/step_definitions/autocomplete_steps.rb
rails3-jquery-autocomplete-0.7.4 integration/features/step_definitions/autocomplete_steps.rb
rails3-jquery-autocomplete-0.7.3 integration/features/step_definitions/autocomplete_steps.rb
rails3-jquery-autocomplete-0.7.2 integration/features/step_definitions/autocomplete_steps.rb
rails3-jquery-autocomplete-0.7.1 integration/features/step_definitions/autocomplete_steps.rb