Sha256: 5d32bc78dc9eeed3dd00962c58cc526da82c5d121a639ca03796280959481824
Contents?: true
Size: 1.14 KB
Versions: 6
Compression:
Stored size: 1.14 KB
Contents
require 'spec_helper.rb' describe "Release task" do let(:jasmine_dev) { JasmineDev.new } describe "when the pages submodule is not present" do before do jasmine_dev.should_receive(:has_pages_submodule?).and_return(false) @output = capture_output { jasmine_dev.release_prep } end it "should tell the user the task is running" do @output.should match(/Building Release/) end it "should prompt the user to install the submodule" do @output.should match(/Submodule for Github Pages isn't present/) end end describe "when the pages submodule is present" do before do JasmineDev.any_instance.should_receive(:write_version_files) JasmineDev.any_instance.should_receive(:build_distribution) JasmineDev.any_instance.should_receive(:build_standalone_distribution) JasmineDev.any_instance.should_receive(:build_github_pages) jasmine_dev.should_receive(:has_pages_submodule?).and_return(true) @output = capture_output { jasmine_dev.release_prep } end it "should tell the user the task is running" do @output.should match(/Building Release/) end end end
Version data entries
6 entries across 6 versions & 1 rubygems