Sha256: c4d1d6bd34391129715da9a84b85f7a51f51483ab0bd5f038718c922efc27019

Contents?: true

Size: 665 Bytes

Versions: 19

Compression:

Stored size: 665 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper"))
require "usher"

describe Usher::Route::GenerateWith, "#empty?" do
  before :all do
    ::GenerateWith = Usher::Route::GenerateWith
  end

  describe "when all fields are nil" do
    before :each do
      @empty_generate_with = GenerateWith.new
    end

    it "should return true" do
      @empty_generate_with.empty?.should be_true
    end
  end

  describe "when at least one field is filled" do
    before :each do
      @filled_generate_with = GenerateWith.new('http')
    end

    it "should return false" do
      @filled_generate_with.empty?.should be_false
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
usher-0.8.3 spec/private/generate_with_spec.rb
usher-0.8.2 spec/private/generate_with_spec.rb
usher-0.8.1 spec/private/generate_with_spec.rb
usher-0.8.0 spec/private/generate_with_spec.rb
usher-0.7.5 spec/private/generate_with_spec.rb
usher-0.7.4 spec/private/generate_with_spec.rb
usher-0.7.3 spec/private/generate_with_spec.rb
usher-0.7.2 spec/private/generate_with_spec.rb
usher-0.7.1 spec/private/generate_with_spec.rb
usher-0.7.0 spec/private/generate_with_spec.rb
usher-0.6.8 spec/private/generate_with_spec.rb
usher-0.6.7 spec/private/generate_with_spec.rb
usher-0.6.6 spec/private/generate_with_spec.rb
usher-0.6.5 spec/private/generate_with_spec.rb
usher-0.6.4 spec/private/generate_with_spec.rb
usher-0.6.3 spec/private/generate_with_spec.rb
usher-0.6.2 spec/private/generate_with_spec.rb
usher-0.6.1 spec/private/generate_with_spec.rb
usher-0.6.0 spec/private/generate_with_spec.rb