Sha256: 7b309af0187e3b991ec4b8e5100c439754a36489007a3efc1ebcd3794d0640e6

Contents?: true

Size: 897 Bytes

Versions: 5

Compression:

Stored size: 897 Bytes

Contents

# -*- Encoding: utf-8 -*-
#
# Copyright 2013 whiteleaf. All rights reserved.
#

require_relative "../lib/device"

if Helper.os_windows?
  describe "Windowsの場合" do
    describe Device::Library::Windows do
      it "Windows7_OSなボリュームネームのドライブは C:/" do
        module Dummy
          extend Device::Library::Windows
        end
        expect(Dummy.get_device_root_dir("Windows7_OS")).to eq("C:/")
      end
    end

    describe "Kindle" do
      before do
        @device = Device.create("kindle")
      end

      it "は存在するべき" do
        expect(Device.exists?("kindle")).to be_truthy
      end
    end

    describe "Kobo" do
      before do
        @device = Device.create("kobo")
      end

      it "は存在するべき" do
        expect(Device.exists?("kobo")).to be_truthy
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
narou-1.7.1 spec/device_spec.rb
narou-1.6.4 spec/device_spec.rb
narou-1.6.3 spec/device_spec.rb
narou-1.6.1 spec/device_spec.rb
narou-1.6.0 spec/device_spec.rb