spec/lib/card/loader_spec.rb in wagn-1.13.0 vs spec/lib/card/loader_spec.rb in wagn-1.14.0.pre1
- old
+ new
@@ -1,31 +1,37 @@
-
+=begin
describe Card::Loader do
- let(:card_double) { proxy Card }
- let(:pat_all_double) { proxy Card::AllSet }
- 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(: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
+ # let(:card_double) { double "Card" }
+ # let(:pat_all_double) { proxy Card::AllSet }
+ # 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
+ # #xpect(Card).to receive(:load_mods)
+ # #
+ # card = Card[:all]
+ # expect(card_double).to receive(:load_formats)
+ # #expect(Card).to receive(:load_sets)
+ # #expect(Card).to receive(:tracks).with(:any_args) # so Card still loads without core in failure testing
+ # Card[:all]
+ # #expect(Card.instance_method(:version)).to be
+ # # allow(Card).to receive(:version)
+ # # expect(Card.instance_method(:type_card)).to be
+ # # allow(Card).to receive(:file_path_sdfs)
+ # #expect(Card.instance_method(:file_path)).to be
+ # end
+ # it "should define Card methods from modules" do
+ # expect(Card.instance_method(:set_modules)).to be
+ # end
+ # it "should define Formatter methods from modules" do
+ # #expect(Card.instance_method(:render_core)).to be
+ # expect(Card.instance_method(:_render_raw)).to be
+ # expect(Card.instance_method(:render_core)).to be
+ # expect(Card.instance_method(:_render_raw)).to be
+ # end
+ # it "should define Formatter methods from modules" do
+ # expect(html_format_double.method(:render_core)).to be
+ # expect(html_format_double.method(:_render_raw)).to be
+ # expect(html_format_double.method(:render_core)).to be
+ # expect(html_format_double.method(:_render_raw)).to be
+ # end
end
+=end