Skip to content

Commit

Permalink
Don't use let for a before(:all) block
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Sep 29, 2013
1 parent 2bcf07d commit 7a2c94e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/lib/language/running_go_tests_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'spec_helper'

describe "Running Go tests" do
let(:test_case_code) do
<<END.strip
before(:all) do
@test_case_code = <<END.strip
package main
import (
Expand Down Expand Up @@ -34,7 +34,7 @@
solution = <<-EOF
package main
EOF
@results = Language::Go.run_tests(test_case_code, solution)
@results = Language::Go.run_tests(@test_case_code, solution)
end

it "calculates the number of passed tests" do
Expand Down

0 comments on commit 7a2c94e

Please sign in to comment.