Sha256: b10c6664e690874bf6f6146e08065fb1ee5eaf05a22dcb554e236ff9ab501292
Contents?: true
Size: 829 Bytes
Versions: 13
Compression:
Stored size: 829 Bytes
Contents
# -*- encoding : utf-8 -*- RSpec.describe Card::Virtual do let(:virtual_content) { "vc" } let(:card) do double("virtual card", junction?: true, generate_virtual_content: virtual_content, left_id: 1, right_id: 5) end let(:create_virtual) { described_class.create(card) } specify ".create" do expect(create_virtual.content).to eq virtual_content end specify ".fetch_content" do create_virtual expect(described_class.fetch_content(card)).to eq virtual_content end specify ".refresh" do expect(described_class.fetch_content(card)).to eq virtual_content allow(card).to receive(:generate_virtual_content).and_return "changed" described_class.refresh card expect(described_class.fetch_content(card)).to eq "changed" end end
Version data entries
13 entries across 13 versions & 1 rubygems