Permalink
Browse files

Increased the test coverage of the default driectory

  • Loading branch information...
1 parent f4c23c2 commit 2320dafa71b32e29dcf7c51068b33aec91ada21f @natedavisolds committed Feb 18, 2014
@@ -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
@@ -0,0 +1,3 @@
+DefaultDirectorySetTest.identify :default_directory_test do
+ @successful = true
+end

0 comments on commit 2320daf

Please sign in to comment.