volt 0.7.21 → 0.7.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25169a15e3c17969071e5b8a85aa4898ff6c39ed
4
- data.tar.gz: 0476ec0206e18da083d7a8f7f535db477abfbcee
3
+ metadata.gz: 5b730e5f16273424161f8379476984c2689b753d
4
+ data.tar.gz: e362306558f379cccc2aab0a5fe15da4250a5627
5
5
  SHA512:
6
- metadata.gz: e9eb89123b409c05a1ff10b6e773e8e844c9dc24e13c08660d53710477f0910783cd1c0c764e8edffe5f206db5e72109e0999c0fc9e304c8f0eb3262be08cfb4
7
- data.tar.gz: bf7607bf674df1e6566706f960212abbfcdfb2a26c67981ec7469754b5e32f3b4b4dd684da67186b444cc535db7907bee214ce5126bb1241003aad1fbfec7dd3
6
+ metadata.gz: 921b6d8e8fe5de195fe402b32a7f040087881bfb896c55ea60a0d577b0c1ae6406b2b490ff33aba3818eb3aaa6c7099d5e5a10c8573dc025bda4057342b34b9f
7
+ data.tar.gz: 3c7bb6ceb7c150f898584ba3c4ae144e4a66be7f31d58537f9f4a54198795e6a1bf7c7b486b6223fe58d31d4b550be1024003f8bf2435fc4466b1764f11f78e8
data/Readme.md CHANGED
@@ -98,6 +98,7 @@ You can access the Volt console with:
98
98
  8. [Controls](#controls)
99
99
  9. [Routes](#routes)
100
100
  1. [Routes file](#routes-file)
101
+ 10. [Testing](#testing)
101
102
 
102
103
 
103
104
  # Getting Help
@@ -811,6 +812,25 @@ Controllers provide a `#channel` method, that you can use to get the status of t
811
812
  | reconnect_interval | the time until the next reconnection attempt (in seconds) |
812
813
 
813
814
 
815
+ # Testing
816
+
817
+ ** Testing is being reworked at the moment.
818
+ Volt provides rspec and capybara out of the box. You can test directly against your models, controllers, etc... or you can do full integration tests via [Capybara](https://github.com/jnicklas/capybara).
819
+
820
+ To run Capybara tests, you need to specify a driver. The following drivers are currently supported:
821
+
822
+ 1. Phantom (via poltergeist)
823
+
824
+ BROWSER=phantom bundle exec rspec
825
+
826
+ 2. Firefox
827
+
828
+ BROWSER=firefox bundle exec rspec
829
+
830
+ 3. IE - coming soon
831
+
832
+ Chrome is not supported due to [this issue](https://code.google.com/p/chromedriver/issues/detail?id=887#makechanges) with ChromeDriver. Feel free to go [here](https://code.google.com/p/chromedriver/issues/detail?id=887#makechanges) and pester the chromedriver team to fix it.
833
+
814
834
  ## Accessing DOM section in a controller
815
835
 
816
836
  TODO
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.21
1
+ 0.7.22
@@ -0,0 +1,11 @@
1
+ if ENV['BROWSER']
2
+ require 'spec_helper'
3
+
4
+ describe "sample integration test", :type => :feature do
5
+ it "should load the page" do
6
+ visit '/'
7
+
8
+ expect(page).to have_content('Home')
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.21
4
+ version: 0.7.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout
@@ -579,6 +579,7 @@ files:
579
579
  - templates/project/config.ru
580
580
  - templates/project/lib/.empty_directory
581
581
  - templates/project/public/index.html
582
+ - templates/project/spec/sample_spec.rb
582
583
  - templates/project/spec/spec_helper.rb
583
584
  - volt.gemspec
584
585
  homepage: http://voltframework.com