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