Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require "rails_helper"
require "recurly_mock"
describe Plan::PublishToRecurly do
let(:free_plan) { Plan.find_by_code("free_2016") }
let(:starter_monthly) { Plan.find_by_code("starter_monthly_2016") }
let(:plans) { [free_plan, starter_monthly] }
let(:recurly_plan_double) do
double(create: double("Recurly::Plan", errors: [], add_ons: double("Recurly::AddOns", "create!" => true)))
end
it "works" do
Plan::PublishToRecurly.call(plans: plans, recurly_plan: recurly_plan_double, output: File.open(File::NULL, "w"))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.