Sha256: 0d502618df3bac34add49c596bbd23117942e2f65ee9e3d8438425ebadcb20a0
Contents?: true
Size: 662 Bytes
Versions: 2
Compression:
Stored size: 662 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
usher-0.5.13 | spec/private/generate_with_spec.rb |
usher-0.5.12 | spec/private/generate_with_spec.rb |