Sha256: 58230528944ad8451eedf0f9e0bd1443773738678a0f420743d5e1a4a582e9d4
Contents?: true
Size: 1.36 KB
Versions: 7
Compression:
Stored size: 1.36 KB
Contents
require "wagn/spec_helper" describe Wagn::Loader do let(:card_double) { proxy Card } let(:pat_all_double) { proxy Card::SetPattern::AllPattern } let(:format_double) { proxy Card::Format } let(:html_format_double) { proxy Card::HtmlFormat } it "should auto-load Card class methods from lib/wagn and mods" do card_double.should_receive(:load_set_modules) card_double.should_receive(:load_formats) card_double.should_receive(:load_sets) card_double.should_receive(:tracks).with(:any_args) # so Card still loads without core in failure testing card_double.method(:version).should be card_double.method(:method_key).should be card_double.method(:type_card).should be card_double.method(:file_path).should be end it "should define Card methods from modules" do pat_all_double.method(:set_modules).should be end it "should define Formatter methods from modules" do format_double.method(:render_core).should be format_double.method(:_render_raw).should be format_double.method(:render_core).should be format_double.method(:_render_raw).should be end it "should define Formatter methods from modules" do html_format_double.method(:render_core).should be html_format_double.method(:_render_raw).should be html_format_double.method(:render_core).should be html_format_double.method(:_render_raw).should be end end
Version data entries
7 entries across 7 versions & 1 rubygems