Sha256: c1672687380b60566def829f1dc91aec576fa02c6cc8021a8b6166121af2be38
Contents?: true
Size: 546 Bytes
Versions: 6
Compression:
Stored size: 546 Bytes
Contents
require 'spec_helper' require_relative '../lib/society/cli' describe Society::CLI do describe "#from" do let(:parser) { Society::Parser.new([]) } 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
society-1.4.0 | spec/cli_spec.rb |
society-1.3.0 | spec/cli_spec.rb |
society-1.2.3 | spec/cli_spec.rb |
society-1.2.2 | spec/cli_spec.rb |
society-1.2.1 | spec/cli_spec.rb |
society-1.2.0 | spec/cli_spec.rb |