diff --git a/spec/ruby-handlebars/context_spec.rb b/spec/ruby-handlebars/context_spec.rb index 68eacee..cb6f2c4 100644 --- a/spec/ruby-handlebars/context_spec.rb +++ b/spec/ruby-handlebars/context_spec.rb @@ -1,5 +1,4 @@ -require_relative '../spec_helper' -require_relative '../../lib/ruby-handlebars/context' +require 'spec_helper' describe Handlebars::Context do let(:ctx) { described_class.new(nil, data) } diff --git a/spec/ruby-handlebars/helpers/each_helper_spec.rb b/spec/ruby-handlebars/helpers/each_helper_spec.rb index 9b3f86a..b9322c8 100644 --- a/spec/ruby-handlebars/helpers/each_helper_spec.rb +++ b/spec/ruby-handlebars/helpers/each_helper_spec.rb @@ -3,8 +3,8 @@ describe Handlebars::Helpers::EachHelper do let(:subject) { Handlebars::Helpers::EachHelper } - let(:hbs) {Handlebars::Handlebars.new} - let(:ctx) {Handlebars::Context.new(hbs, {})} + let(:hbs) { Handlebars::Handlebars.new } + let(:ctx) { Handlebars::Context.new(hbs, {}) } it_behaves_like "a registerable helper", "each" diff --git a/spec/ruby-handlebars/helpers/helper_missing_helper_spec.rb b/spec/ruby-handlebars/helpers/helper_missing_helper_spec.rb index 598b80d..2bc2fe8 100644 --- a/spec/ruby-handlebars/helpers/helper_missing_helper_spec.rb +++ b/spec/ruby-handlebars/helpers/helper_missing_helper_spec.rb @@ -1,15 +1,10 @@ -require_relative '../../spec_helper' +require 'spec_helper' require_relative './shared' -require_relative '../../../lib/ruby-handlebars' -require_relative '../../../lib/ruby-handlebars/tree' -require_relative '../../../lib/ruby-handlebars/helpers/helper_missing_helper' - - describe Handlebars::Helpers::HelperMissingHelper do let(:subject) { Handlebars::Helpers::HelperMissingHelper } let(:hbs) { Handlebars::Handlebars.new } - let(:ctx) {Handlebars::Context.new(hbs, {})} + let(:ctx) { Handlebars::Context.new(hbs, {}) } it_behaves_like "a registerable helper", "helperMissing" diff --git a/spec/ruby-handlebars/helpers/if_helper_spec.rb b/spec/ruby-handlebars/helpers/if_helper_spec.rb index d8cf594..ef8f959 100644 --- a/spec/ruby-handlebars/helpers/if_helper_spec.rb +++ b/spec/ruby-handlebars/helpers/if_helper_spec.rb @@ -3,8 +3,8 @@ describe Handlebars::Helpers::IfHelper do let(:subject) { Handlebars::Helpers::IfHelper } - let(:hbs) {Handlebars::Handlebars.new} - let(:ctx) {Handlebars::Context.new(hbs, {})} + let(:hbs) { Handlebars::Handlebars.new} + let(:ctx) { Handlebars::Context.new(hbs, {}) } it_behaves_like "a registerable helper", "if" diff --git a/spec/ruby-handlebars/helpers/unless_helper_spec.rb b/spec/ruby-handlebars/helpers/unless_helper_spec.rb index ca77c51..7a5dfa5 100644 --- a/spec/ruby-handlebars/helpers/unless_helper_spec.rb +++ b/spec/ruby-handlebars/helpers/unless_helper_spec.rb @@ -3,8 +3,8 @@ describe Handlebars::Helpers::UnlessHelper do let(:subject) { Handlebars::Helpers::UnlessHelper } - let(:hbs) {Handlebars::Handlebars.new} - let(:ctx) {Handlebars::Context.new(hbs, {})} + let(:hbs) { Handlebars::Handlebars.new } + let(:ctx) { Handlebars::Context.new(hbs, {}) } it_behaves_like "a registerable helper", "unless"