Sha256: 91383c8547d91049ef7632f49433568fc34723d54b2e5134e91a9eff13a105c9
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
require_relative "spec_helper" describe Xcode do let(:subject) { Xcode } describe "#projects" do context "when there is a project within the current directory" do let(:subject) { Xcode.projects } it "should find the project" do puts subject.map {|p| p.name} subject.size.should == 1 subject.first.name.should == "TestProject" end end end describe "#project" do context "when the target project exists" do context "when fetching the project by name" do let(:subject) { Xcode.project 'TestProject' } it "should find the project" do subject.should_not be_nil end end context "when fetching the project by path" do let(:subject) { Xcode.project "#{File.dirname(__FILE__)}/TestProject/TestProject.xcodeproj" } it "should find the project" do subject.should_not be_nil end end end context "when the target project does not exist" do let(:subject) { Xcode.project 'DoesNotExistProject' } it "should raise an error" do expect { subject }.to raise_error end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xcoder-0.1.18 | spec/xcode_spec.rb |
xcoder-0.1.15 | spec/xcode_spec.rb |
xcoder-0.1.14 | spec/xcode_spec.rb |