lindo 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/.gitignore +2 -1
  2. data/README +15 -17
  3. data/lindo.gemspec +1 -1
  4. metadata +16 -4
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  pkg
2
- test/tmp
2
+ test/tmp
3
+ /*.gem
data/README CHANGED
@@ -6,21 +6,19 @@ assert_select statements or just sanity check the output of the test.
6
6
 
7
7
  == Installation
8
8
 
9
- Install the gem directly:
9
+ Install the gem standalone:
10
10
 
11
11
  sudo gem install lindo
12
12
 
13
13
  Or install the gem in your Rails project:
14
14
 
15
- script/plugin install git://github.com/adeptware/lindo.git
15
+ config.gem 'lindo' # add this line to environment.rb
16
+ rake gems:install
16
17
 
17
- Then require lindo in your test_helper.rb or spec_helper.rb file:
18
+ You may have to require and extend the Lindo module from your test or
19
+ spec helper if you use sessions in your integration tests:
18
20
 
19
21
  require 'lindo'
20
-
21
- You may also have to extend the Lindo module from your test or spec
22
- helper if you use sessions in your integration tests:
23
-
24
22
  session.extend Lindo
25
23
 
26
24
  == Usage
@@ -45,8 +43,8 @@ symbol to the method:
45
43
  end
46
44
 
47
45
  By default, vr looks for an instance variable named @response and calls the #body
48
- method on it. If your page body is stored in a different variable, such as when
49
- testing a mailer, you can pass the raw HTML directly to vr and it will do the
46
+ method on it. If your page body is stored in a different variable (such as when
47
+ testing a mailer) you can pass the raw HTML directly to vr and it will do the
50
48
  right thing:
51
49
 
52
50
  def test_mailer
@@ -55,17 +53,17 @@ right thing:
55
53
  ...
56
54
  end
57
55
 
58
- Note that to use the default web view, your Rails application must be running
59
- locally on port 3000. This will ensure that the page renders correctly with the
60
- appropriate images and stylesheets. The server doesn't need to be running if
61
- you use the HTML-only view.
62
-
63
56
  == Compatibility
64
57
 
65
- lindo requires OS X. Support for Windows is planned.
58
+ Lindo works with test/spec, test/unit, RSpec, and Cucumber. When testing with
59
+ RSpec, ensure your controllers are using integrate_views otherwise nothing will
60
+ show up when the browser opens. To use Lindo with Cucumber, a custom step can
61
+ be written. It could look something like this:
66
62
 
67
- test/spec and test/unit work fine with lindo. RSpec, however, tests views
68
- independently of controllers, so lindo won't work with it.
63
+ Then /^render the current page$/ do
64
+ extend Lindo
65
+ vr
66
+ end
69
67
 
70
68
  == Running Unit Tests
71
69
 
data/lindo.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lindo}
8
- s.version = "0.6.0"
8
+ s.version = "0.7.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Adeptware"]
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ hash: 3
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 0
10
+ version: 0.7.0
5
11
  platform: ruby
6
12
  authors:
7
13
  - Adeptware
@@ -43,21 +49,27 @@ rdoc_options:
43
49
  require_paths:
44
50
  - lib
45
51
  required_ruby_version: !ruby/object:Gem::Requirement
52
+ none: false
46
53
  requirements:
47
54
  - - ">="
48
55
  - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
49
59
  version: "0"
50
- version:
51
60
  required_rubygems_version: !ruby/object:Gem::Requirement
61
+ none: false
52
62
  requirements:
53
63
  - - ">="
54
64
  - !ruby/object:Gem::Version
65
+ hash: 3
66
+ segments:
67
+ - 0
55
68
  version: "0"
56
- version:
57
69
  requirements: []
58
70
 
59
71
  rubyforge_project:
60
- rubygems_version: 1.3.5
72
+ rubygems_version: 1.3.7
61
73
  signing_key:
62
74
  specification_version: 3
63
75
  summary: Enables rendering of the body of an HTTP response from inside a functional test.