Sha256: 16e10da58524e5c89129859a0efbff5ba8ac073df263def50a06201ac9d98228
Contents?: true
Size: 1.87 KB
Versions: 2
Compression:
Stored size: 1.87 KB
Contents
# Copyright, 2016, by Samuel G. D. Williams. <http://www.codeotaku.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. require 'teapot/command' RSpec.describe Teapot::Command, order: :defined do let!(:source) {"https://github.com/kurocha"} let!(:root) {Build::Files::Path.new(__dir__) + "command_spec"} let!(:project_name) {"Test Project"} let!(:project_path) {root + 'test-project'} let(:top) {Teapot::Command::Top["--root", project_path.to_s]} context Teapot::Command::Create do subject {top["create", project_name, source.to_s, "project"]} it "should create a new project" do root.delete expect{subject.invoke}.to_not raise_error expect(project_path + "teapot.rb").to be_exist end end context Teapot::Command::Build do subject {top["build", "Run/TestProject"]} it "should build project" do expect{subject.invoke}.to_not raise_error end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
teapot-2.0.0.pre.rc2 | spec/teapot/command_spec.rb |
teapot-2.0.0.pre.rc1 | spec/teapot/command_spec.rb |