ruby on rails - RSpec method not getting called? -
i'm pretty explicitly calling method in spec, appears it's not getting called.
i'm new rspec tests maybe puts doesn't work in conditions or something?
so have method, perform, , calls find_mentions. logically, i've stubbed out find_mentions inside of perform, because don't want call there.
describe ".perform" "calls socialapi methods" # test stuff here facebookjob.stub(:find_mentions) facebookjob.perform(@network.id) end end describe ".find_mentions" "should verify , save formatted facebook message" #test stuff here facebookjob.find_mentions(@network) end end i've put puts statement inside find_mentions, on first line, it's not appearing. why this?
Comments
Post a Comment