-
-
Save anonymous/7f9d59f1e9e3ea3f5e1f6adcbc1c0c1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Error | |
uninitialized constant Employee (NameError) | |
./features/step_definitions/adding_employees_steps.rb:20:in `/^I should be able to enter employee details$/' | |
features/my.feature:8:in `Then I should be able to enter employee details' | |
# Error If i call FactoryGirl.find_definitions twice | |
Factory already registered: employee (FactoryGirl::DuplicateDefinitionError) | |
./spec/factories.rb:4:in `block in <top (required)>' | |
./spec/factories.rb:3:in `<top (required)>' | |
./features/step_definitions/adding_employees_steps.rb:19:in `/^I should be able to enter employee details$/' | |
features/my.feature:8:in `Then I should be able to enter employee details' | |
# spec/factories.rb | |
require 'factory_girl' | |
FactoryGirl.define do | |
factory :employee do | |
first_name 'FirstName' | |
last_name 'LastName' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment