Sha256: 203bc78adeebd0da7b5f9c3bdcf726f29347b887e233e6f3884d6aeb49cce670

Contents?: true

Size: 918 Bytes

Versions: 18

Compression:

Stored size: 918 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

module Spec
  module Runner
    describe ExampleGroupRunner do
      before(:each) do
        err = StringIO.new('')
        out = StringIO.new('')
        @options = Options.new(err, out)
        @runner = Spec::Runner::ExampleGroupRunner.new(@options)
      end

      after(:each) do
        Spec::Expectations.differ = nil
      end

      describe "#load_files" do
        it "should load UTF-8 encoded files" do
          file = File.expand_path(File.dirname(__FILE__) + "/resources/utf8_encoded.rb")
          @options.files << file
          @runner.load_files(@options.files_to_load).should == @options.files_to_load
        end
      end
    end
    
    describe BehaviourRunner do
      it "is DEPRECATED (use ExampleGroupRunner)" do
        Kernel.should_receive(:warn).with(/DEPRECATED/)
        BehaviourRunner.new(nil)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
dchelimsky-rspec-1.1.11.7 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.12 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.99.1 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.99.13 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.99.2 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.99.3 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.99.4 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.99.5 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.99.6 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.99.7 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.99.8 spec/spec/runner/example_group_runner_spec.rb
dchelimsky-rspec-1.1.99.9 spec/spec/runner/example_group_runner_spec.rb
newbamboo-evented-rspec-1.1.12 spec/spec/runner/example_group_runner_spec.rb
newbamboo-rspec-1.1.12 spec/spec/runner/example_group_runner_spec.rb
rspec-1.1.12 spec/spec/runner/example_group_runner_spec.rb
rspec-1.2.2 spec/spec/runner/example_group_runner_spec.rb
rspec-1.2.1 spec/spec/runner/example_group_runner_spec.rb
rspec-1.2.0 spec/spec/runner/example_group_runner_spec.rb