Sha256: 45c1caaddf64037a4fe5a370ca3a9be516c9b10da83586b41427cabcddf5516d
Contents?: true
Size: 825 Bytes
Versions: 1
Compression:
Stored size: 825 Bytes
Contents
require 'spec_helper' module Alf module Shell describe DocManager, ".call" do let(:dm){ @dm ||= DocManager.new } let(:cmd){ Alf::Shell::Show } subject{ dm.call(cmd, {}) } describe "on a static file" do before{ def dm.find_file(cmd); Path.dir/'static.md' end } it { should eq("Hello\n") } end describe "on a dynamic file" do before{ def dm.find_file(cmd); Path.dir/'dynamic.md' end } it { should eq("show\n") } end describe "on an example file" do before{ def dm.find_file(cmd); Path.dir/'example.md' end } it { should eq((Path.dir/"example_1.txt").read) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alf-shell-0.14.0 | spec/unit/doc_manager/test_call.rb |