* Specs for FuctionCaller * Fix accepting nil values from AWS lambda * Specs for the black_box #2524 * Spec for BlackBox#comment_quality_score * Remove vcr cassette usage from the CouponGenerator spec
12 lines
353 B
Ruby
12 lines
353 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe CouponGenerator, vcr: {} do
|
|
let(:versions) { %w[member_discount sticker_pack tee_pack] }
|
|
|
|
describe "#expect" do
|
|
it "generates code with proper prefix ( [version]_[code] )" do
|
|
version = versions.sample
|
|
expect(described_class.new(1, version).generate).to include("#{version}_")
|
|
end
|
|
end
|
|
end
|