Skip to content

RSpec #98

Description

@DanielZhangQingLong

Why can't pass the rspec test? I got something like this:

Failure/Error: it { should allow_mass_assignment_of property }
     NoMethodError:
       undefined method `active_authorizer' for #<Class:0x007fe563655180>

18) Order class methods .percent calculates the percent based on #goal and #current
     Failure/Error: Order.percent.should == 2.48 * 100
       expected: 248.0
            got: 0.0 (using ==)

20) Order class methods .revenue multiplies the #current with price from Settings
     Failure/Error: Order.revenue.should == 24
       expected: 24
            got: 0.0 (using ==)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions