Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/egnyte.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@
require "egnyte/file"

module Egnyte
class DomainRequired < StandardError; end
class UnsupportedAuthStrategy < StandardError; end
end
9 changes: 9 additions & 0 deletions spec/session_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'spec_helper'

describe Egnyte::Session do
it 'raises DomainRequired error if domain is not given' do
expect do
Egnyte::Session.new(key: 'xxxxxxx')
end.to raise_error Egnyte::DomainRequired
end
end