-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into 1171_iiif_manifes…
…t_images_only
- Loading branch information
Showing
12 changed files
with
125 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# @abstract | ||
class NilEndpoint | ||
def ping | ||
false | ||
end | ||
|
||
def persisted? | ||
false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This migration comes from hyrax (originally 20170621201939) | ||
class CreateJobIoWrappers < ActiveRecord::Migration[5.0] | ||
def change | ||
create_table :job_io_wrappers do |t| | ||
t.references :user | ||
t.references :uploaded_file | ||
t.string :file_set_id | ||
t.string :mime_type | ||
t.string :original_name | ||
t.string :path | ||
t.string :relation | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+61 Bytes
(100%)
public/bower_includes/universalviewer/dist/uv-2.0.1/lib/embed.js.gz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
RSpec.describe "proprietor/accounts/edit", type: :view do | ||
let(:account) { FactoryGirl.create(:account) } | ||
|
||
before do | ||
assign(:account, account) | ||
end | ||
|
||
it "renders the edit account form" do | ||
render | ||
end | ||
|
||
assert_select "form[action=?][method=?]", proprietor_account_path(account), "post" do | ||
assert_select "input#account_tenant[name=?]", "account[tenant]" | ||
context "with connections" do | ||
let(:account) { create(:account) } | ||
it "renders the edit account form" do | ||
assert_select "form[action=?][method=?]", proprietor_account_path(account), "post" do | ||
assert_select "input#account_tenant[name=?]", "account[tenant]" | ||
assert_select "input#account_cname[name=?]", "account[cname]" | ||
end | ||
end | ||
end | ||
|
||
assert_select "input#account_cname[name=?]", "account[cname]" | ||
context "without connections" do | ||
let(:account) { create(:account, solr_endpoint: nil, fcrepo_endpoint: nil) } | ||
it "renders the edit account form" do | ||
assert_select "form[action=?][method=?]", proprietor_account_path(account), "post" do | ||
assert_select "input#account_tenant[name=?]", "account[tenant]" | ||
assert_select "input#account_cname[name=?]", "account[cname]" | ||
end | ||
end | ||
end | ||
end |