Sha256: b89ab9ffb37528d3b30e15a9b012a57e7b97ce7f31d81198db6a3b615222643c
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
require "spec_helper" describe Primo::Creator do describe "#create" do before :each do Primo::Template.stub(:list).and_return([Primo::Template.for("default-rails")]) end it "should create a rails install with the given name and template" do creator = Primo::Creator.new("default-rails") creator.template.remote.stub(:system) creator.should_receive(:system).with(/rails new my_app -m .*default\/rails.rb/) creator.create("my_app") end it "should ensure the template exists" do creator = Primo::Creator.new("foo-bar") expect(->{creator.create("my_app")}).to raise_error(ArgumentError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
primo-0.1.0 | spec/primo/creator_spec.rb |