From 2a23ab1132505114750c79034c05e46bd8e58922 Mon Sep 17 00:00:00 2001 From: zewelor Date: Thu, 23 Mar 2017 14:19:59 +0100 Subject: [PATCH] Add namespace for development mode plugin --- lib/hypernova/plugins/development_mode_plugin.rb | 2 +- spec/plugins/development_mode_plugin_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hypernova/plugins/development_mode_plugin.rb b/lib/hypernova/plugins/development_mode_plugin.rb index f26df59..abeeaad 100644 --- a/lib/hypernova/plugins/development_mode_plugin.rb +++ b/lib/hypernova/plugins/development_mode_plugin.rb @@ -1,6 +1,6 @@ require 'erb' -class DevelopmentModePlugin +class Hypernova::DevelopmentModePlugin def after_response(current_response, _) current_response.each do |name, result| current_response[name] = result.merge({ "html" => render(name, result) }) if result["error"] diff --git a/spec/plugins/development_mode_plugin_spec.rb b/spec/plugins/development_mode_plugin_spec.rb index faacfb3..e4500c2 100644 --- a/spec/plugins/development_mode_plugin_spec.rb +++ b/spec/plugins/development_mode_plugin_spec.rb @@ -1,7 +1,7 @@ require "spec_helper" require "hypernova/plugins/development_mode_plugin" -describe DevelopmentModePlugin do +describe Hypernova::DevelopmentModePlugin do describe "#after_response" do let(:name1) { "Melkor.jsx" } let(:name2) { "Noldor.jsx" }