spec/integration/view_spec.rb in dry-view-0.1.0 vs spec/integration/view_spec.rb in dry-view-0.1.1

- old
+ new

@@ -1,16 +1,14 @@ RSpec.describe 'dry-view' do let(:view_class) do - klass = Class.new(Dry::View::Layout) - - klass.configure do |config| - config.root = SPEC_ROOT.join('fixtures/templates') - config.name = 'app' - config.template = 'users' - config.formats = {html: :slim, txt: :erb} + Class.new(Dry::View::Layout) do + configure do |config| + config.root = SPEC_ROOT.join('fixtures/templates') + config.name = 'app' + config.template = 'users' + config.formats = {html: :slim, txt: :erb} + end end - - klass end let(:scope) do Struct.new(:title).new('dry-view rocks!') end