apigy / selfstarter

Roll your own crowdfunding
selfstarter.us
Other
3.17k stars 1.63k forks source link

RSpec #98

Open DanielZhangQingLong opened 9 years ago

DanielZhangQingLong commented 9 years ago

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 ==)