Skip to content

Instantly share code, notes, and snippets.

[email protected] added a new Visa ending in 4242 evt_1AwFBnLHOWFuqTsqe0e70NHe 2017/08/29 14:15:55
[email protected] is a new customer evt_1AwFBnLHOWFuqTsqhwhRfgQX 2017/08/29 14:15:55
[email protected] deleted a Visa ending in 4242 evt_1AwFBeLHOWFuqTsqkzmmoGoW 2017/08/29 14:15:46
[email protected]'s default payment source changed evt_1AwFBeLHOWFuqTsqEj6AjBG6 2017/08/29 14:15:46
[email protected] subscribed to the Bold Networking Monthly plan evt_1AwFBTLHOWFuqTsqsnM4kUPE 2017/08/29 14:15:35
[email protected]'s invoice for $0.00 was paid evt_1AwFBTLHOWFuqTsqxYCjyT8Q 2017/08/29 14:15:35
[email protected] has a new invoice for $0.00 1
evt_1AwFBTLHOWFuqTsqqLmBMjFn 2017/08/29 14:15:35
[email protected]'s details were updated evt_1AwFBTLHOWFuqTsqvjQcbkE6 2017/08/29 14:15:35
[email protected] added a new Visa ending in 4242 evt_1AwFBSLHOWFuqTsqBCk3on0W 2017/08/29 14:15:34
@staycreativedesign
staycreativedesign / creates_points.rb
Created September 6, 2017 16:26
test not passing?
class CreatesPoint
def initialize(user_id,point)
@user_id = user_id
@point = point
end
def run!
create_point
end
class CreatesPoint
POINTS = { 'new_user' => 1,
'trial_to_paid' => 2,
'attended_event' => 1
}
def initialize(user_id,point)
@user_id = user_id
@point = POINTS[point]
6) UsersController#create sends a notification email to coach of team selected
Failure/Error: @team = create(:team, coach: @ref)
ActiveModel::MissingAttributeError:
can't write unknown attribute `coach_id`
# ./spec/controllers/users_controller_spec.rb:6:in `block (2 levels) in <top (required)>'
# -e:1:in `<main>'
6) UsersController#create sends a notification email to coach of team selected
[
{
"id": 0,
"name": "comida",
"price": 0.99,
"description": "this is the description",
"deckImage": "https://images-assets.nasa.gov/image/PIA08653/PIA08653~small.jpg",
"deckBgImage": "this is a UIImage",
"bought": false,
"cards": [
{
"utf8" => "✓",
"team" => {
"name" => "Doyle, O'Conner and Hudson",
"coach_id" => #<User:0x007f88838fb2c8> {
:id => 3,
:email => "[email protected]",
:password_digest => "$2a$04$BdFSkJTM2SOUx2az/6a81urzTVEiW.8qVLrYle/JHysP4cq0tAMwS",
:role => "coach",
:team_id => nil,
Failures:
1) Team test
Failure/Error: expect(@admin.sponsored_teams.count).to eq(4)
expected: 4
got: 6
(compared using ==)
# ./spec/models/user_spec.rb:22:in `block (2 levels) in <top (required)>'
Failures:
1) Team doesn't allow for more than 4 teams for a sponsor
Failure/Error: expect(@admin.sponsored_teams.count).to eq(4)
expected: 4
got: 5
(compared using ==)
# ./spec/models/team_spec.rb:12:in `block (2 levels) in <top (required)>'
with @admin.save
Team
doesn't allow for more than 4 teams for a sponsor (FAILED - 1)
Failures:
1) Team doesn't allow for more than 4 teams for a sponsor
Failure/Error: expect(@admin.sponsored_teams.count).to eq(4)