bin/specserv in specserv-0.0.4 vs bin/specserv in specserv-0.0.5
- old
+ new
@@ -1,15 +1,15 @@
#!/usr/bin/env ruby
-require 'specserv/rspec_gateway'
+require 'specserv/rspec_adapter'
require 'specserv/custom_exceptions'
require 'sinatra' # possibly overkill, maybe just use thin or something?
set :run, true # not sure about this, apparently Sinatra needs it to automatically launch a server
before do
- @tester = Specserv::RSpecGateway.new
+ @tester = Specserv::RSpecAdapter.new
def set_spec_path (spec_path)
@spec_path = "#{spec_path}.rb"
end
@@ -48,12 +48,12 @@
end
## Result Pages ##
-get "/:spec_path" do
+get "/*" do |path|
- set_spec_path( params[:spec_path] )
+ set_spec_path( path )
begin
raise Specserv::NoSpecFileError unless spec_file_exists?
run_tests
raise Specserv::MalformedResultsError if malformed_results?
\ No newline at end of file