showcase-rails 0.2.4 → 0.2.5

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
  SHA256:
3
- metadata.gz: aead2040b7c095f85df0c152c6d96aa3bec927e52f49db09f407926536ce36ae
4
- data.tar.gz: c5fd847fd56d1ffa39a4d9aae681106685c71aef2e199bbb637158ec80f43cbc
3
+ metadata.gz: bf778403a9352a0351175e44992b887820d5336c211e2d3dcfa6975b27240bf3
4
+ data.tar.gz: aea48794945648e9681c3fa345d5503b99aebb81f4c49d6e527bbc13f38f7da6
5
5
  SHA512:
6
- metadata.gz: 3ffe05a31b2be808620a735573c1cbaf705cceb75bdf03f750193f0ad5534096cb3bc81a4d98e51b80712408ca7b3b60465e85a23828ae469da9af3fdb348db5
7
- data.tar.gz: f6ec194dec60349be7b4effd48a20517c8af04e45604b104687a6479a4bba92087ae11b36d702fac03e8d1faebb22521b6d49e62d816b5a42d187e027ce9ce00
6
+ metadata.gz: e44e0daed1d4d76efacfd3f261a815ff5a5920335baf2318adea7a72f307c02d45b923905ceca8e6c0d45f179eba3761f7151ed06679a0075cc686fa73f8b6f2
7
+ data.tar.gz: 845ffb9426a6d1de5892cad9cad0a0bffd06d54a238767115d37f7c68d3643aa6e6eaa4c6308106b7cd071014e0be7faeb52e2d89952b66b5dc841a2df0823cf
data/README.md CHANGED
@@ -56,9 +56,9 @@ end
56
56
 
57
57
  ## Automatic previews testing
58
58
 
59
- Showcase automatically runs tests for all your Showcases by rendering them. As long as `gem "showcase-rails"` is in the `:test` group you're set.
59
+ Showcase can automatically generate tests for all your Showcases to have it executed in your CI setup, run `bin/rails showcase:install:previews_test` to set this up.
60
60
 
61
- If you want to tweak this, run `bin/rails showcase:install:previews_test` and open `test/views/showcase_test.rb`. You can then add your own `setup` and `teardown` hooks, as well as override the provided `assert_showcase_preview` to add custom assertions.
61
+ You can then open `test/views/showcase_test.rb` and add your own `setup` and `teardown` hooks, as well as override the provided `assert_showcase_preview` to add custom assertions.
62
62
 
63
63
  If you need custom assertions for specific previews and their samples, you can use the `test` helper:
64
64
 
@@ -5,9 +5,5 @@ module Showcase
5
5
  initializer "showcase.assets" do
6
6
  config.assets.precompile += %w[showcase_manifest]
7
7
  end
8
-
9
- initializer "showcase.previews_test.autorun" do
10
- Showcase::PreviewsTest.autorun if Rails.env.test?
11
- end
12
8
  end
13
9
  end
@@ -4,10 +4,6 @@ class Showcase::PreviewsTest < ActionView::TestCase
4
4
  test_class.prepare
5
5
  end
6
6
 
7
- def self.autorun
8
- at_exit { prepare unless subclasses.any? }
9
- end
10
-
11
7
  def self.prepare
12
8
  tests Showcase::EngineController._helpers
13
9
 
@@ -1,3 +1,3 @@
1
1
  module Showcase
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: showcase-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pence
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.4.1
104
+ rubygems_version: 3.4.7
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Showcase helps you show off and document your partials, components, view