Permalink
Browse files

Refactor: Extract to constant

  • Loading branch information...
1 parent e4c2b0d commit 1dade4aa0dba57d95b5619a1ed1e074d1004ff82 @josephwilk josephwilk committed Apr 7, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/cucover/cli_commands/cucumber.rb
@@ -2,6 +2,8 @@ module Cucover
module CliCommands
class Cucumber
+ LANGUAGE = 'rb'
+
class << self
attr_accessor :exit_status
end
@@ -16,7 +18,7 @@ def execute
require 'cucumber'
step_mother = ::Cucumber::StepMother.new
- step_mother.load_programming_language('rb')
+ step_mother.load_programming_language(LANGUAGE)
require 'cucover/cucumber_hooks'
execute_cuke do

0 comments on commit 1dade4a

Please sign in to comment.