Commit 5acc566

mo khan <mo@mokhan.ca>
2013-12-27 17:16:24
rename to expose binding.
1 parent 31da2f7
Changed files (3)
lib/nasty/binding_behaviour.rb → lib/nasty/expose_binding.rb
@@ -1,5 +1,5 @@
 module Nasty
-  module BindingBehaviour
+  module ExposeBinding
     def get_binder
       binding
     end
lib/nasty.rb
@@ -1,7 +1,7 @@
 require "nasty/background_job"
-require "nasty/binding_behaviour"
 require "nasty/command"
 require "nasty/composite_command"
+require "nasty/expose_binding"
 require "nasty/kernel"
 require "nasty/log"
 require "nasty/object"
spec/unit/binding_spec.rb → spec/unit/expose_binding_spec.rb
@@ -1,13 +1,13 @@
 require "spec_helper"
 
 module Nasty
-  describe BindingBehaviour do
+  describe ExposeBinding do
     it "exposes an objects private binding" do
       item = Object.new
       item.instance_eval do
         @message = "secret"
       end
-      item.extend(Nasty::BindingBehaviour)
+      item.extend(Nasty::ExposeBinding)
       binding = item.get_binder
       result = ERB.new("<%= @message %>").result(binding)
       result.should == "secret"