Removed extra space from include clause
This commit is contained in:
		
							parent
							
								
									690e841fca
								
							
						
					
					
						commit
						66d5baf3fe
					
				@ -4,22 +4,25 @@ describe Language::Java do
 | 
				
			|||||||
  describe "#self.java_home_env" do
 | 
					  describe "#self.java_home_env" do
 | 
				
			||||||
    it "returns java_home path with version if version specified" do
 | 
					    it "returns java_home path with version if version specified" do
 | 
				
			||||||
      java_home = described_class.java_home_env("blah")
 | 
					      java_home = described_class.java_home_env("blah")
 | 
				
			||||||
      expect(java_home[:JAVA_HOME]).to include(" --version blah")
 | 
					      expect(java_home[:JAVA_HOME]).to include("--version blah")
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    it "returns java_home path without version if version is not specified" do
 | 
					    it "returns java_home path without version if version is not specified" do
 | 
				
			||||||
      java_home = described_class.java_home_env
 | 
					      java_home = described_class.java_home_env
 | 
				
			||||||
      expect(java_home[:JAVA_HOME]).not_to include(" --version")
 | 
					      expect(java_home[:JAVA_HOME]).not_to include("--version")
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  describe "#self.overridable_java_home_env" do
 | 
					  describe "#self.overridable_java_home_env" do
 | 
				
			||||||
 | 
					    let(:JAVA_HOME) { "haha" }
 | 
				
			||||||
    it "returns java_home path with version if version specified" do
 | 
					    it "returns java_home path with version if version specified" do
 | 
				
			||||||
      java_home = described_class.overridable_java_home_env("blah")
 | 
					      java_home = described_class.overridable_java_home_env("blah")
 | 
				
			||||||
      expect(java_home[:JAVA_HOME]).to include(" --version blah")
 | 
					      expect(java_home[:JAVA_HOME]).to eq("haha")
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    it "returns java_home path without version if version is not specified" do
 | 
					    it "returns java_home path without version if version is not specified" do
 | 
				
			||||||
      java_home = described_class.overridable_java_home_env
 | 
					      java_home = described_class.overridable_java_home_env
 | 
				
			||||||
      expect(java_home[:JAVA_HOME]).not_to include(" --version")
 | 
					      expect(java_home[:JAVA_HOME]).not_to include("--version")
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user