Commits

Michael Granger committed 6ed3a11

LinkParser spec fixes.

Comments (0)

Files changed (3)

lib/linguistics/en/wordnet.rb

 	# Register this module to the list of modules to include
 	Linguistics::EN.register_extension( self )
 
+
 	#################################################################
 	###	M O D U L E   M E T H O D S
 	#################################################################

spec/linguistics/en/conjugation_spec.rb

 	end
 
 	it "conjugates 'be' in first person singular as 'was'" do
-		# pending "figuring out how this is supposed to work" do
+		pending "figuring out how this is supposed to work" do
 			"be".en.past_tense( :first_person ).should == 'was'
-		# end
+		end
 	end
 
 	it "conjugates 'be' in third person singular as 'were'" do

spec/linguistics/en/linkparser_spec.rb

 
 		it "can create a LinkParser::Sentence from a sentence in a string" do
 			pending "installation of the linkparser library" unless
-				Linguistics::EN::LinkParser.has_link_parser?
+				Linguistics::EN.has_linkparser?
 			"This is a sentence.".en.sentence.should be_a( LinkParser::Sentence )
 		end
 
 		it "raises an NotImplementedError when you try to use linkparser functionality" do
 
 			# If the system *does* have linkparser support, pretend it doesn't.
-			if Linguistics::EN::LinkParser.has_link_parser?
+			if Linguistics::EN.has_linkparser?
+				Linguistics::EN::LinkParser.stub( :has_linkparser? ).and_return( false )
 				exception = stub( "linkparser load error", :message => 'no such file to load' )
-				Linguistics::EN::LinkParser.stub!( :lp_error ).and_return( exception )
+				Linguistics::EN::LinkParser.stub( :lp_error ).and_return( exception )
 			end
 
 			expect {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.