spec/spec-i18n/runner/configuration_spec.rb in rspec-i18n-1.0.0 vs spec/spec-i18n/runner/configuration_spec.rb in rspec-i18n-1.1.0

- old
+ new

@@ -34,18 +34,26 @@ config.language.should == "es" end end - describe "load language" do - before(:each) do - config.spec_language(:pt) - end - it "should load all the modules" do - config.load_language.should be_true - end - end end end end end end + +describe "load language" do + before(:each) do + @config = ::Spec::Runner::Configuration.new + end + it "should load all the modules" do + Spec::DSL::Main.should_receive(:register_adverbs) + Kernel.should_receive(:register_expectations_keywords) + Spec::Example::ExampleGroupMethods.should_receive(:register_example_adverbs) + Spec::Example::BeforeAndAfterHooks.should_receive(:register_hooks) + Spec::Matchers.should_receive(:register_all_matchers) + Spec::Example::Subject::ExampleGroupMethods.should_receive(:register_subjects) + Spec::Example::Subject::ExampleMethods.should_receive(:register_subjects) + @config.load_language + end +end \ No newline at end of file