Sha256: 774d7896e27c32474830483e0dc1f688435bccc23516a2f60803e2b515a1415b
Contents?: true
Size: 1.13 KB
Versions: 6
Compression:
Stored size: 1.13 KB
Contents
require 'spec_helper' require 'cuesmash/ios_app' require 'cuesmash/app' describe Cuesmash::IosApp do describe "when creating a new instance" do it "should have an app_dir instance" do stub_dir @iosapp = Cuesmash::IosApp.new(file_name: 'MyApp', build_configuration: 'Debug', app_name: 'MyApp') expect(@iosapp.app_dir).to match('/tmp/Debug-iphonesimulator/') end it "should have an app_path instance" do stub_dir @iosapp = Cuesmash::IosApp.new(file_name: 'MyApp', build_configuration: 'Debug', app_name: 'MyApp') expect(@iosapp.app_path).to match('/tmp/Debug-iphonesimulator/MyApp.app') end it "should have a tmp_dir instance" do stub_dir @iosapp = Cuesmash::IosApp.new(file_name: 'MyApp', build_configuration: 'Debug', app_name: 'MyApp') expect(@iosapp.tmp_dir).to match('/tmp') end it "should have an app_name instance" do @iosapp = Cuesmash::IosApp.new(file_name: 'MyApp', build_configuration: 'Debug', app_name: 'MyApp') expect(@iosapp.app_name).to match('MyApp.app') end def stub_dir Dir.stub(:mktmpdir) { '/tmp' } end end end
Version data entries
6 entries across 6 versions & 1 rubygems