Sha256: 7473dbf484959e677e24c627a3926cbf21617dd78bfe9113e3804125f007d93a
Contents?: true
Size: 773 Bytes
Versions: 1
Compression:
Stored size: 773 Bytes
Contents
require "./lib/infect" require 'tempfile' require 'pry' require 'tmpdir' describe Infect::Runner do before do stub_const "Infect::VIMRC", file stub_const "Infect::BUNDLE_DIR", dir end let(:file) { Tempfile.new("rspec") } let(:dir) { Dir.mktmpdir } it "reads bundle command" do file.puts '"=bundle NoParams' file.close Infect::Command.stub(:builder) Infect::Command.should_receive(:build).with("bundle", "NoParams", {}) Infect::Runner.call end it "reads bundle command" do file.puts '"=bundle ExtraParams param1:val1 param2: val2' file.close Infect::Command.stub(:builder) Infect::Command.should_receive(:build).with("bundle", "ExtraParams", {param1:"val1", param2:"val2"}) Infect::Runner.call end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
infect-0.0.5 | spec/runner_spec.rb |