Sha256: 163537dd63130ff930e7a98c0804523263c5642c8893d9adccaefd33869f72fc

Contents?: true

Size: 541 Bytes

Versions: 6

Compression:

Stored size: 541 Bytes

Contents

require "spec_helper"

describe VraptorScaffold::Runner::Help do

  before(:all) do
    @help = VraptorScaffold::Runner::Help
  end

  context "user asking to see vraptor help" do

    it "should be true when nil" do
      @help.help?(nil).should be_true
    end

    it "should be true when -h" do
      @help.help?('-h').should be_true
    end

    it "should be true when --help" do
      @help.help?('--help').should be_true
    end

    it "should be false otherwise" do
      @help.help?('scaffold').should be_false
    end

  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
heroku-vraptor-scaffold-0.9.0 spec/vraptor-scaffold/runner/help_spec.rb
vraptor-scaffold-1.3.0 spec/vraptor-scaffold/runner/help_spec.rb
vraptor-scaffold-1.3.0.rc spec/vraptor-scaffold/runner/help_spec.rb
vraptor-scaffold-1.2.3 spec/vraptor-scaffold/runner/help_spec.rb
vraptor-scaffold-1.2.1 spec/vraptor-scaffold/runner/help_spec.rb
vraptor-scaffold-1.2.0 spec/vraptor-scaffold/runner/help_spec.rb