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
2015-10-13T07:02:44.717320+00:00 app[web.2]: Started POST "/api/v1/stores/9991/employees.json" for 185.35.203.10 at 2015-10-13 07:02:44 +0000 | |
2015-10-13T07:02:44.719541+00:00 app[web.2]: Parameters: {"employee"=>{"worker_id"=>124982, "address"=>"c/o Lørenveien 10", "bank_account_number"=>"[FILTERED]", "birthdate"=>nil, "city"=>"SØRUM", "country_code"=>"NO", "display_name"=>"Janic Andersson", "email_address"=>nil, "first_name"=>"Janic", "gender"=>"Male", "last_name"=>"Andersson", "phone_number"=>"41395426", "postal_code"=>"1923", "social_security_number"=>"[FILTERED]", "student"=>false, "upn"=>nil, "parental_responsibility"=>false, "single_parent"=>false, "present_in_store"=>false, "position"=>3, "temporary_employee_type"=>nil, "employment_type"=>1, "salary_type"=>1, "hours_per_week"=>30, "end_date"=>nil, "fixed_pay_premium_percent"=>0, "fixed_pay_premium_currency"=>0, "hourly_pay_premium_percent"=>0, "hourly_pay_premium_currency"=>0, "start_date"=>"2015-10-13", "age"=>nil, "hourly_pay_total"=>159.54, "_mod |
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
let g:ctrlp_custom_ignore = '\v[\/](release|node_modules|development)$' " Ignores for CtrlP | |
let NERDTreeIgnore=['development$', 'node_modules$', 'release$', '\.vim$', '\~$'] " Ignores for NERDTree | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Vim Rspec | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
let g:rspec_command = "Dispatch rspec {spec}" | |
" testing shortchuts |
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
class Variant < ActiveRecord::Base | |
has_and_belongs_to_many :posts | |
end | |
class Post < ActiveRecord::Base | |
has_and_belongs_to_many :variants | |
end | |
# specs | |
require 'spec_helper' |
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 {} "assertion failed: Your server returned a hash with the key actor_roles but you have no mapping for it" |
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
{ | |
"app/assets/javascripts/models/*.js": { | |
"command": "jmodel", | |
"alternate": "spec/javascripts/models/%s_spec.js", | |
"template": "App.%S = DS.Model.extend" | |
}, | |
"app/assets/javascripts/controllers/*_controller.js": { | |
"command": "jcontroller", | |
"alternate": "spec/javascripts/controllers/%s_spec.js", |
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
App.SocialNetwork = DS.Model.extend({ | |
name: DS.attr('string'), | |
actors: DS.hasMany('App.Actor') | |
}); | |
App.Actor = DS.Model.extend({ | |
name: DS.attr('string'), | |
x: DS.attr('number'), | |
y: DS.attr('number'), | |
social_network: DS.belongsTo('App.SocialNetwork'), |
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
# spec/presenters/article_presenter_spec.rb | |
require "spec_helper" | |
describe ArticlePresenter, :wip do | |
let(:json) { JSON.load(File.read("spec/data/example.json")) } | |
let(:template) { controller.view_context } | |
let(:article) { Article.create(json) } | |
let(:presenter) { ArticlePresenter.new(article, template) } | |
NewerOlder