Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sn method does not work #120

Open
bruno- opened this issue Oct 28, 2012 · 0 comments
Open

sn method does not work #120

bruno- opened this issue Oct 28, 2012 · 0 comments

Comments

@bruno-
Copy link

bruno- commented Oct 28, 2012

Hi,
for some reason sn nor serial_number methods do not work. Here is the blueprints file:

require 'machinist/active_record'
require 'sham'
require 'faker'

Device.blueprint do
end

Device.blueprint(:enabled) do
token { "RAND-#{sn}" } # generates 4 random digits
last_checkin_time { Time.now }
end

Here is the error I get when running cucumber scenario:

@javascript
Scenario: enabled device is shown in system status # features/dashboard.feature:33
Given there is a device (enabled) # cucumber_factory-1.8.3/lib/cucumber/factory.rb:24
No sham defined for sn (RuntimeError)
./spec/support/blueprints.rb:9:in block (2 levels) in <top (required)>' ./spec/support/blueprints.rb:9:inblock in <top (required)>'
features/dashboard.feature:34:in `Given there is a device (enabled)'

Any suggestions, why is this happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant