Skip to content

Commit

Permalink
Revert "Test component rendering with given block"
Browse files Browse the repository at this point in the history
This reverts commit eb31c01.
  • Loading branch information
florentferry committed Mar 30, 2018
1 parent eb31c01 commit 437000b
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion features/component_generator.feature
Expand Up @@ -68,7 +68,6 @@ Feature: Component generator
Then the file named "index.js" should contain:
"""
import "components/all/all";
import "components/bar/bar";
import "components/some_example/some_example";
import "components/world/world";
"""
Expand Down
1 change: 0 additions & 1 deletion fixtures/my_app/frontend/components/bar/_bar.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion fixtures/my_app/frontend/components/bar/bar.css

This file was deleted.

1 change: 0 additions & 1 deletion fixtures/my_app/frontend/components/bar/bar.js

This file was deleted.

3 changes: 0 additions & 3 deletions fixtures/my_app/frontend/components/bar/bar_component.rb

This file was deleted.

1 change: 0 additions & 1 deletion fixtures/my_app/frontend/components/index.js
@@ -1,3 +1,2 @@
import "components/all/all";
import "components/bar/bar";
import "components/world/world";
1 change: 0 additions & 1 deletion komponent.gemspec
Expand Up @@ -24,7 +24,6 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.2.0'

spec.add_dependency "actionview", ">= 4.2"
spec.add_dependency "activesupport", ">= 4.2"
spec.add_dependency "railties", ">= 4.2"
spec.add_dependency "webpacker", ">= 3.0.0"
Expand Down
3 changes: 0 additions & 3 deletions lib/komponent/component_renderer.rb
Expand Up @@ -2,9 +2,6 @@

module Komponent
class ComponentRenderer
include ActionView::Context
include ActionView::Helpers::CaptureHelper

attr_reader :context

def initialize(controller)
Expand Down
6 changes: 0 additions & 6 deletions test/komponent/komponent_helper_test.rb
Expand Up @@ -38,10 +38,4 @@ def test_helper_renders_default_property
%(<div class="foo">Foobar</div>),
component('foo').chomp
end

def test_helper_renders_with_block_given
assert_equal \
%(<div class="bar">Bar</div>),
component('bar') { "Bar" }.chomp
end
end

0 comments on commit 437000b

Please sign in to comment.