spec/spec_helper.rb in formulaic-0.0.6 vs spec/spec_helper.rb in formulaic-0.1.0
- old
+ new
@@ -1,7 +1,6 @@
require 'formulaic'
-require 'pry'
module SpecHelper
def input(model, field)
page.find("##{model}_#{field}")
end
@@ -21,18 +20,20 @@
I18n.backend.store_translations(:en, YAML.load(<<-TRANSLATIONS))
simple_form:
labels:
user:
age: Age
- name: Display name
- email: Email
- phone: Phone Number
- url: Website
- password: Password
- date_of_birth: Date of birth
- terms_of_service: I agree to the Terms of Service
+ avatar: Avatar
awesome: Are you awesome?
bio: Biography
+ date_of_birth: Date of birth
+ email: Email
+ name: Display name
+ new:
+ password: Password
+ phone: Phone Number
+ terms_of_service: I agree to the Terms of Service
+ url: Website
TRANSLATIONS
end
end
RSpec.configure do |c|