Skip to content

Commit

Permalink
Fixed broken test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterae committed Dec 31, 2019
1 parent fce5f25 commit bfb8806
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion spec/helpers/view_extensions_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe Blocks::ViewExtensions do
subject { ActionView::Base.new }
subject { view }

context '#blocks' do
it "should return an instance of a Blocks.builder_class" do
Expand Down
1 change: 0 additions & 1 deletion spec/renderers/renderer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'spec_helper'

describe Blocks::Renderer do
let(:view) { ActionView::Base.new }
let(:builder) { Blocks::Builder.new(view) }
let(:block_with_hooks_renderer) { builder.block_with_hooks_renderer }

Expand Down
9 changes: 1 addition & 8 deletions spec/support/fixtures_support.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
def view
# if @view
# @view
# else
@view ||= ActionView::Base.new("spec/fixtures")
# class << @view
#
# end
# end
@view ||= Class.new(ActionView::Base).with_view_paths(["spec/fixtures"])
end

def render_template_and_compare_to_fixture(partial, locals={})
Expand Down
1 change: 0 additions & 1 deletion spec/support/rendering_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
module RenderingSupport
extend RSpec::SharedContext

let(:view) { ActionView::Base.new("spec/fixtures") }
let(:builder) { TestBuilder.new(view) }
end

Expand Down

0 comments on commit bfb8806

Please sign in to comment.