Skip to content

Commit

Permalink
rename ExampleGroupSubject to Subject
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Apr 9, 2010
1 parent 69e6320 commit fccc626
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/core.rb
Expand Up @@ -9,7 +9,7 @@
require 'rspec/core/example'
require 'rspec/core/kernel_extensions'
require 'rspec/core/shared_example_group'
require 'rspec/core/example_group_subject'
require 'rspec/core/subject'
require 'rspec/core/example_group'
require 'rspec/core/formatters'
require 'rspec/core/backward_compatibility'
Expand Down
10 changes: 5 additions & 5 deletions lib/rspec/core/example_group.rb
Expand Up @@ -7,7 +7,7 @@ module Rspec
module Core
class ExampleGroup
extend Hooks
include ExampleGroupSubject
include Subject
include Let

attr_accessor :running_example
Expand All @@ -31,10 +31,10 @@ def self.example(desc=nil, options={}, &block)
def self.alias_example_to(new_alias, extra_options={})
new_alias = <<-END_RUBY
def self.#{new_alias}(desc=nil, options={}, &block)
updated_options = options.update(:caller => caller)
updated_options.update(:pending => true) unless block
updated_options.update(#{extra_options.inspect})
examples << Rspec::Core::Example.new(self, desc, updated_options, block)
options.update(:pending => true) unless block
options.update(:caller => caller)
options.update(#{extra_options.inspect})
examples << Rspec::Core::Example.new(self, desc, options, block)
end
END_RUBY
module_eval(new_alias, __FILE__, __LINE__)
Expand Down
@@ -1,6 +1,6 @@
module Rspec
module Core
module ExampleGroupSubject
module Subject

def self.included(kls)
kls.extend ClassMethods
Expand Down
10 changes: 5 additions & 5 deletions rspec-core.gemspec
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|

s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["Chad Humphries", "David Chelimsky"]
s.date = %q{2010-04-06}
s.date = %q{2010-04-08}
s.description = %q{Rspec runner and example group classes}
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
s.executables = ["rspec", "spec"]
Expand Down Expand Up @@ -80,7 +80,7 @@ Gem::Specification.new do |s|
"features/command_line/example_name_option.feature",
"features/command_line/line_number_appended_to_path.feature",
"features/command_line/line_number_option.feature",
"features/configuration/spec_opts.feature",
"features/configuration/options_file.feature",
"features/example_groups/describe_aliases.feature",
"features/example_groups/nested_groups.feature",
"features/formatters/custom_formatter.feature",
Expand All @@ -106,7 +106,6 @@ Gem::Specification.new do |s|
"lib/rspec/core/deprecation.rb",
"lib/rspec/core/example.rb",
"lib/rspec/core/example_group.rb",
"lib/rspec/core/example_group_subject.rb",
"lib/rspec/core/formatters.rb",
"lib/rspec/core/formatters/base_formatter.rb",
"lib/rspec/core/formatters/base_text_formatter.rb",
Expand All @@ -128,6 +127,7 @@ Gem::Specification.new do |s|
"lib/rspec/core/runner.rb",
"lib/rspec/core/shared_example_group.rb",
"lib/rspec/core/shared_example_group_kernel_extensions.rb",
"lib/rspec/core/subject.rb",
"lib/rspec/core/version.rb",
"lib/rspec/core/world.rb",
"rspec-core.gemspec",
Expand All @@ -137,7 +137,6 @@ Gem::Specification.new do |s|
"spec/rspec/core/command_line_options_spec.rb",
"spec/rspec/core/configuration_spec.rb",
"spec/rspec/core/example_group_spec.rb",
"spec/rspec/core/example_group_subject_spec.rb",
"spec/rspec/core/example_spec.rb",
"spec/rspec/core/formatters/base_formatter_spec.rb",
"spec/rspec/core/formatters/base_text_formatter_spec.rb",
Expand All @@ -156,6 +155,7 @@ Gem::Specification.new do |s|
"spec/rspec/core/ruby_project_spec.rb",
"spec/rspec/core/runner_spec.rb",
"spec/rspec/core/shared_example_group_spec.rb",
"spec/rspec/core/subject_spec.rb",
"spec/rspec/core/world_spec.rb",
"spec/rspec/core_spec.rb",
"spec/ruby_forker.rb",
Expand Down Expand Up @@ -185,7 +185,6 @@ Gem::Specification.new do |s|
"spec/rspec/core/command_line_options_spec.rb",
"spec/rspec/core/configuration_spec.rb",
"spec/rspec/core/example_group_spec.rb",
"spec/rspec/core/example_group_subject_spec.rb",
"spec/rspec/core/example_spec.rb",
"spec/rspec/core/formatters/base_formatter_spec.rb",
"spec/rspec/core/formatters/base_text_formatter_spec.rb",
Expand All @@ -204,6 +203,7 @@ Gem::Specification.new do |s|
"spec/rspec/core/ruby_project_spec.rb",
"spec/rspec/core/runner_spec.rb",
"spec/rspec/core/shared_example_group_spec.rb",
"spec/rspec/core/subject_spec.rb",
"spec/rspec/core/world_spec.rb",
"spec/rspec/core_spec.rb",
"spec/ruby_forker.rb",
Expand Down
Expand Up @@ -2,7 +2,7 @@

module Rspec::Core

describe ExampleGroupSubject do
describe Subject do

describe "implicit subject" do
describe "with a class" do
Expand Down

0 comments on commit fccc626

Please sign in to comment.