Skip to content

Commit

Permalink
Rename rspec_context var to context
Browse files Browse the repository at this point in the history
  • Loading branch information
sandro committed Feb 10, 2010
1 parent fb9ca88 commit 77e39aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/assembly_line/constructor.rb
Expand Up @@ -2,9 +2,9 @@ module AssemblyLine
class Constructor
extend Forwardable

def_delegators :rspec_context, :let, :before
def_delegators :context, :let, :before

attr_reader :name, :code_block, :rspec_context, :options
attr_reader :name, :code_block, :context, :options

def initialize(name, code_block)
@name = name
Expand All @@ -13,7 +13,7 @@ def initialize(name, code_block)

def assemble(context, options)
@options = options
@rspec_context = context
@context = context
instance_eval(&code_block)
self
end
Expand All @@ -31,7 +31,7 @@ def depends_on(*constructors)
constructors = Array(options[:depends_on])
end
constructors.each do |name|
AssemblyLine.assemble(name, rspec_context)
AssemblyLine.assemble(name, context)
end
end

Expand Down

0 comments on commit 77e39aa

Please sign in to comment.