spec/request_spec.rb in wvanbergen-request-log-analyzer-1.1.0 vs spec/request_spec.rb in wvanbergen-request-log-analyzer-1.1.1
- old
+ new
@@ -3,11 +3,11 @@
describe RequestLogAnalyzer::Request, :incomplete_request do
include RequestLogAnalyzerSpecHelper
before(:each) do
- @incomplete_request = RequestLogAnalyzer::Request.new(spec_format)
+ @incomplete_request = spec_format.create_request
@incomplete_request << { :line_type => :test, :lineno => 1, :test_capture => 'awesome!' }
end
it "should be single if only one line has been added" do
@incomplete_request.should_not be_empty
@@ -35,10 +35,10 @@
describe RequestLogAnalyzer::Request, :completed_request do
include RequestLogAnalyzerSpecHelper
before(:each) do
- @completed_request = RequestLogAnalyzer::Request.new(spec_format)
+ @completed_request = spec_format.create_request
@completed_request << { :line_type => :first, :lineno => 1, :name => 'first line!' }
@completed_request << { :line_type => :test, :lineno => 4, :test_capture => 'testing' }
@completed_request << { :line_type => :test, :lineno => 7, :test_capture => 'testing some more' }
@completed_request << { :line_type => :last, :lineno => 10, :time => 0.03 }
end
\ No newline at end of file