Sha256: 687510443730bd4edf8f12503dc13b29eaf97b740714f6f2629eb956a773d2b5
Contents?: true
Size: 745 Bytes
Versions: 9
Compression:
Stored size: 745 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 it "handles globs" do expect(parser).to receive(:report) allow(Society).to receive(:new) { parser } Society::CLI.new.from("#{Dir.getwd}/lib/society/{parser.rb,node.rb}") end end end
Version data entries
9 entries across 9 versions & 1 rubygems