Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Increased the test coverage of the default driectory

  • Loading branch information...
commit 2320dafa71b32e29dcf7c51068b33aec91ada21f 1 parent f4c23c2
@natedavisolds authored
View
15 spec/acceptance/default_directory_acceptance_spec.rb
@@ -1,16 +1,7 @@
require 'spec_helper'
describe "Default the directory to the caller classes directory and the pluralized version of the class name" do
- class LoadingAllTest
- include Identitee
- end
-
- it "loads all the identifiable before calling all" do
- identifiables = LoadingAllTest.all_identifiables
- identifiables.length.should == 2
- end
-
- class LazyLoadingTest
+ class DefaultDirectorySetTest
include Identitee
attr_accessor :successful
@@ -25,11 +16,11 @@ def successful?
end
it "has a identify_root_directory" do
- LazyLoadingTest.identify_root_directory.should =~ /lazy_loading_tests/
+ DefaultDirectorySetTest.identify_root_directory.should =~ /default_directory_set_tests/
end
it "lazy loads identifyables" do
- test = LazyLoadingTest.find_identifiable :autoload_test
+ test = DefaultDirectorySetTest.find_identifiable :default_directory_test
test.should_not be_nil
test.should be_successful
end
View
3  spec/acceptance/default_directory_set_tests/default_directory_test.rb
@@ -0,0 +1,3 @@
+DefaultDirectorySetTest.identify :default_directory_test do
+ @successful = true
+end
Please sign in to comment.
Something went wrong with that request. Please try again.