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
require 'spec_helper' | |
describe 'fedora_solr_sync_issues' do | |
describe 'master files no longer in fedora but still in solr' do | |
let!(:master_file) {FactoryGirl.create(:master_file)} | |
after do | |
ActiveFedora::SolrService.instance.conn.delete_by_id(master_file.pid) | |
ActiveFedora::SolrService.instance.conn.commit | |
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
** [out :: mallorn.dlib.indiana.edu] An error has occurred, all later migrations canceled: | |
** [out :: mallorn.dlib.indiana.edu] | |
** [out :: mallorn.dlib.indiana.edu] undefined method `gsub' for 0:Fixnum | |
** [out :: mallorn.dlib.indiana.edu] /var/www/avalon/shared/gems/ruby/1.9.1/gems/om-3.0.3/lib/om/xml/term_value_operators.rb:165:in `block (2 levels) in insert_from_template' | |
** [out :: mallorn.dlib.indiana.edu] /var/www/avalon/shared/gems/ruby/1.9.1/gems/om-3.0.3/lib/om/xml/term_value_operators.rb:164:in `each' | |
** [out :: mallorn.dlib.indiana.edu] /var/www/avalon/shared/gems/ruby/1.9.1/gems/om-3.0.3/lib/om/xml/term_value_operators.rb:164:in `block in insert_from_template' | |
** [out :: mallorn.dlib.indiana.edu] /var/www/avalon/shared/gems/ruby/1.9.1/gems/nokogiri-1.6.0/lib/nokogiri/xml/builder.rb:293:in `initialize' | |
** [out :: mallorn.dlib.indiana.edu] /var/www/avalon/shared/gems/ruby/1.9.1/gems/nokogiri-1.6.0/lib/nokogiri/xml/builder.rb:254:in `new' | |
** [out :: mallorn.dlib.indiana.edu] /var/www/avalon/ |
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
cd avalon-installer-flat | |
vagrant halt | |
cd .. | |
git clone git@github.com:avalonmediasystem/avalon-installer.git | |
cd avalon-installer | |
git checkout r2 | |
git submodule update --init | |
cp -r ../avalon-installer-flat/.vagrant . | |
cp ../avalon-installer-flat/avalon-install.yml . | |
vagrant up |
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
it "should be able to change group name when authenticated and authorized" do | |
login_as('policy_editor') | |
new_group_name = Faker::Lorem.word | |
post 'update', group_name: new_group_name, new_user: "", id: group.name | |
new_group = Admin::Group.find(new_group_name) | |
new_group.should_not be_nil | |
p group.inspect | |
p new_group.inspect |
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
diff --git a/lib/avalon/batch_ingest.rb b/lib/avalon/batch_ingest.rb | |
index 62d7c6d..9b2cc62 100644 | |
--- a/lib/avalon/batch_ingest.rb | |
+++ b/lib/avalon/batch_ingest.rb | |
@@ -56,16 +56,18 @@ module Avalon | |
base_errors = [] | |
email_address = package.manifest.email || Avalon::Configuration['email']['notification'] | |
current_user = User.where(username: email_address).first || User.where(email: email_address).first | |
- ability = Ability.new current_user | |
- ability.instance_variable_set("@user", current_user) |
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
class BarHistory2 < ActiveFedora::Base | |
include ActiveModel::Dirty | |
has_metadata 'xmlish', :type=>BarStream2 | |
delegate_to 'xmlish', [:donkey, :cow] | |
after_save :clear_changed_attributes | |
define_attribute_methods [:donkey, :cow] |
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
diff --git a/lib/active_fedora/delegating.rb b/lib/active_fedora/delegating.rb | |
index d2a3a29..d805514 100644 | |
--- a/lib/active_fedora/delegating.rb | |
+++ b/lib/active_fedora/delegating.rb | |
@@ -72,6 +72,7 @@ module ActiveFedora | |
if ds_specs.has_key? to.to_s | |
create_delegate_reader(fields.first, options) | |
create_delegate_setter(fields.first, options) | |
+ create_delegate_changed?(fields.first, options) | |
else |
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
diff --git a/src/flash/htmlelements/VideoElement.as b/src/flash/htmlelements/VideoElement.as | |
index 700ecdf..e1d460a 100644 | |
--- a/src/flash/htmlelements/VideoElement.as | |
+++ b/src/flash/htmlelements/VideoElement.as | |
@@ -202,6 +202,14 @@ package htmlelements | |
sendEvent(HtmlMediaEvent.SEEKED); | |
break; | |
+ case "NetStream.Seek.Complete": | |
+ if (_isPreloading) { |
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
Failures: | |
1) CatalogController#index as an un-authenticated user should show results for items that are public and published | |
Failure/Error: assigns(:document_list).count.should eql(1) | |
expected: 1 | |
got: 0 | |
(compared using eql?) | |
# ./spec/controllers/catalog_controller_spec.rb:11:in `block (4 levels) in <top (required)>' |
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
[cjcolvar@localhost avalon]$ rspec spec/controllers/catalog_controller_spec.rb | |
Run options: exclude {:scaffold=>true} | |
..FF..FF | |
Failures: | |
1) CatalogController#index as an un-authenticated user should not show results for items that are not published | |
Failure/Error: assigns(:document_list).count.should eql(0) | |
expected: 0 |