Sha256: 6e510286022ccce3d95f7930259f28396f01bd14fe1e002734122f309c79225b

Contents?: true

Size: 591 Bytes

Versions: 22

Compression:

Stored size: 591 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "mercury index" do
  include Rack::Test::Methods

  def app
    Mercury
  end
  
  it "should be true" do
    get '/'
    last_response.should be_true
  end
  
  it "should contain mercury" do
    get '/'
    last_response.body.should =~ /Mercury/
  end

  it "should contain mercury" do
    get '/'
    last_response.body.should =~ /Jack Russell Software/
  end
  
  # it "should return error" do
  #   app.stub!(:haml).and_return("<h1>test</h1>")
  #   get '/test'
  #   puts last_response.body
  # end
  
  
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
mars-0.2.0 spec/mercury_spec.rb
mars-0.1.2 spec/mercury_spec.rb
mars-0.1.0 spec/mercury_spec.rb
mercury-1.0.2 spec/mercury_spec.rb
mercury-1.0.1 spec/mercury_spec.rb
mercury-1.0.0 spec/mercury_spec.rb
mercury-0.9.15 spec/mercury_spec.rb
mercury-0.9.14 spec/mercury_spec.rb
mercury-0.9.13 spec/mercury_spec.rb
mercury-0.9.12 spec/mercury_spec.rb
mercury-0.9.11 spec/mercury_spec.rb
mercury-0.9.10 spec/mercury_spec.rb
mercury-0.9.9 spec/mercury_spec.rb
mercury-0.9.8 spec/mercury_spec.rb
mercury-0.9.7 spec/mercury_spec.rb
mercury-0.9.6 spec/mercury_spec.rb
mercury-0.9.5 spec/mercury_spec.rb
mercury-0.9.4 spec/mercury_spec.rb
mercury-0.9.3 spec/mercury_spec.rb
mercury-0.9.1 spec/mercury_spec.rb