Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSpec #98

Open
DanielZhangQingLong opened this issue Jan 30, 2015 · 0 comments
Open

RSpec #98

DanielZhangQingLong opened this issue Jan 30, 2015 · 0 comments

Comments

@DanielZhangQingLong
Copy link

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 ==)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant