Sha256: 22c9b420c7b0c6c0418f17dc6ebaeb718b9cb99eec10cb292cfb6a550d139ebd

Contents?: true

Size: 275 Bytes

Versions: 6

Compression:

Stored size: 275 Bytes

Contents

require 'spec_helper'

describe Location do
  before do
    @loc = Location.new("domain.com")
  end

  it "has a domain reader" do
    @loc.domain.should == "domain.com"
  end

  it "has a url generated form the domain" do
    @loc.url.should == "http://domain.com"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
crags-2.2.1 spec/crags/location_spec.rb
crags-2.2.0 spec/crags/location_spec.rb
crags-2.1.2 spec/crags/location_spec.rb
crags-2.1.1 spec/crags/location_spec.rb
crags-2.1.0 spec/crags/location_spec.rb
crags-2.0.0 spec/crags/location_spec.rb