Sha256: 123f66455c9e9e8429b6324bc3deb65abda006801424aea0e7d9af2e56417ed3
Contents?: true
Size: 547 Bytes
Versions: 3
Compression:
Stored size: 547 Bytes
Contents
require 'spec_helper' require_relative '../lib/society/cli' describe Society::CLI do describe "#from" do let(:parser) { Society::Parser.new(nil) } it "invokes Society with a path" do allow(parser).to receive(:report) expect(Society).to receive(:new) { parser } Society::CLI.new.from("./spec/fixtures") end it "calls report on a Parser instance" do expect(parser).to receive(:report) allow(Society).to receive(:new) { parser } Society::CLI.new.from("./spec/fixtures") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
society-1.1.1 | spec/cli_spec.rb |
society-1.1.0 | spec/cli_spec.rb |
society-1.0.0 | spec/cli_spec.rb |