Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (23 sloc) 576 Bytes
require "spec_helper"
ENV["RACK_ENV"] = "test"
require File.expand_path("../../application", __FILE__)
describe Travis::WebLint::Application do
include Rack::Test::Methods
def app
Travis::WebLint::Application
end
describe "/" do
before do
get "/"
end
it "works" do
last_response.should be_ok
end
it "contains a 'repo' input field" do
last_response.body.should =~ /<input.*name='repo'.*?\/>/
end
it "contains a 'yml' textarea" do
last_response.body.should =~ /<textarea.*name='yml'.*?>/
end
end
end
Jump to Line
Something went wrong with that request. Please try again.