autogen_rspec 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/autogen_rspec.rb +3 -3
  2. metadata +2 -2
data/lib/autogen_rspec.rb CHANGED
@@ -1,12 +1,12 @@
1
- module AutogenSpec
1
+ module AutogenRspec
2
2
 
3
3
  def self.log_test
4
4
  begin
5
- f = File.open('tmp/test.txt','a')
5
+ f = File.open('tmp/request/test.rb','a')
6
6
  temp = ''
7
7
 
8
8
  str = "it 'should ' do \n"
9
- str = str + "\n# cookies #{cookies.inspect} \n"
9
+ str = str + "\n# cookies #{cookies.inspect} \n" if cookies
10
10
  if request.env['REQUEST_METHOD'] == 'GET' or request.env['REQUEST_METHOD'] == 'DELETE'
11
11
  str = str + "#{request.env['REQUEST_METHOD'].downcase} '#{request.env['REQUEST_URI']}',{'HTTP_ACCEPT' => '#{request.env['HTTP_ACCEPT']}'} \n"
12
12
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autogen_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-26 00:00:00.000000000 Z
12
+ date: 2013-09-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ''
15
15
  email: jef.abraham@gmail.com