Commit 505f9395 authored by Samuel Giddins's avatar Samuel Giddins

Clean up specs to make failures more obvious

parent ac1a9551
...@@ -713,7 +713,7 @@ module Pod ...@@ -713,7 +713,7 @@ module Pod
it 'does not include pod target if its used by tests only' do it 'does not include pod target if its used by tests only' do
spec1 = Resolver::ResolverSpecification.new(stub, true, nil) spec1 = Resolver::ResolverSpecification.new(stub, true, nil)
spec2 = Resolver::ResolverSpecification.new(stub, true, nil) spec2 = Resolver::ResolverSpecification.new(stub, true, nil)
target_definition = stub target_definition = stub('TargetDefinition')
pod_target = stub(:name => 'Pod1', :target_definitions => [target_definition], :specs => [spec1.spec, spec2.spec]) pod_target = stub(:name => 'Pod1', :target_definitions => [target_definition], :specs => [spec1.spec, spec2.spec])
resolver_specs_by_target = { target_definition => [spec1, spec2] } resolver_specs_by_target = { target_definition => [spec1, spec2] }
@analyzer.send(:filter_pod_targets_for_target_definition, target_definition, [pod_target], resolver_specs_by_target).should.be.empty @analyzer.send(:filter_pod_targets_for_target_definition, target_definition, [pod_target], resolver_specs_by_target).should.be.empty
......
...@@ -470,9 +470,9 @@ module Pod ...@@ -470,9 +470,9 @@ module Pod
spec_names.should == %w( spec_names.should == %w(
Expecta MainSpec MainSpec/Tests Expecta MainSpec MainSpec/Tests
) )
resolved_specs.find { |rs| rs.name == 'Expecta' }.used_by_tests_only?.should.be.false resolved_specs.find { |rs| rs.name == 'Expecta' }.should.not.be.used_by_tests_only
resolved_specs.find { |rs| rs.name == 'MainSpec' }.used_by_tests_only?.should.be.false resolved_specs.find { |rs| rs.name == 'MainSpec' }.should.not.be.used_by_tests_only
resolved_specs.find { |rs| rs.name == 'MainSpec/Tests' }.used_by_tests_only?.should.be.true resolved_specs.find { |rs| rs.name == 'MainSpec/Tests' }.should.be.used_by_tests_only
end end
it 'allows pre-release spec versions when a requirement has an ' \ it 'allows pre-release spec versions when a requirement has an ' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment