Sha256: fc59c2e74b5e5e20f60f8d74c35fee6681f048e7f77a25d33f753bf95fd40fea
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe VaporFlow do describe "radiant_path" do it "should return the given path prepended with a /" do VaporFlow.radiant_path('slashy').should == '/slashy' end end describe "local_or_external_path" do it "should return the given path if it begins with 'http'" do VaporFlow.local_or_external_path('http://saturnflyer.com').should == 'http://saturnflyer.com' end it "should return the given path if it begins with 'https'" do VaporFlow.local_or_external_path('https://saturnflyer.com').should == 'https://saturnflyer.com' end it "should return the radiant_path if the given path does not begin with http" do VaporFlow.local_or_external_path('about/the/site').should == VaporFlow.radiant_path('about/the/site') end end describe "send_to_radiant" do it "should return an array" do VaporFlow.send_to_radiant.kind_of?(Array).should be_true end it "should have 404 as the first item in the array" do VaporFlow.send_to_radiant.first.should == 404 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radiant-vapor-extension-2.1.2 | spec/metal/vapor_flow_spec.rb |
radiant-vapor-extension-2.1.1 | spec/metal/vapor_flow_spec.rb |
radiant-vapor-extension-2.1.0 | spec/metal/vapor_flow_spec.rb |