repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/import_requests_controller_spec.rb
spec/controllers/import_requests_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe ImportRequestsController do fixtures :all disconnect_sunspot describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all import_requests as @import_requests' do get :index ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/realize_types_controller_spec.rb
spec/controllers/realize_types_controller_spec.rb
require 'rails_helper' # This spec was generated by rspec-rails when you ran the scaffold generator. # It demonstrates how one might use RSpec to specify the controller code that # was generated by Rails when you ran the scaffold generator. # # It assumes that the implementation code is generated by the rails scaffold...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/user_export_files_controller_spec.rb
spec/controllers/user_export_files_controller_spec.rb
require 'rails_helper' describe UserExportFilesController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all user_export_files as @user_export_files' do get :index assigns(:user_export_files).should eq(UserExp...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/participates_controller_spec.rb
spec/controllers/participates_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe ParticipatesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:participate) end describe "GET index" do describe "When logged in as Administrator" do login_fixture_admin it "...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/event_export_files_controller_spec.rb
spec/controllers/event_export_files_controller_spec.rb
require 'rails_helper' describe EventExportFilesController do fixtures :all describe "GET index" do describe "When logged in as Administrator" do login_fixture_admin it "assigns all event_export_files as @event_export_files" do get :index assigns(:event_export_files).should eq(Eve...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/carrier_types_controller_spec.rb
spec/controllers/carrier_types_controller_spec.rb
require 'rails_helper' # This spec was generated by rspec-rails when you ran the scaffold generator. # It demonstrates how one might use RSpec to specify the controller code that # was generated by Rails when you ran the scaffold generator. # # It assumes that the implementation code is generated by the rails scaffold...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/subject_types_controller_spec.rb
spec/controllers/subject_types_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe SubjectTypesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:subject_type) end describe 'GET index' do before(:each) do FactoryBot.create(:subject_type) end describe 'Whe...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/user_checkout_stats_controller_spec.rb
spec/controllers/user_checkout_stats_controller_spec.rb
require 'rails_helper' describe UserCheckoutStatsController do fixtures :all describe 'GET index' do before(:each) do FactoryBot.create(:user_checkout_stat) end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all user_checkout_stats as @user_checkout_s...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/search_engines_controller_spec.rb
spec/controllers/search_engines_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe SearchEnginesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:search_engine) end describe 'GET index' do before(:each) do FactoryBot.create(:search_engine) end describe '...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/my_accounts_controller_spec.rb
spec/controllers/my_accounts_controller_spec.rb
require 'rails_helper' describe MyAccountsController do fixtures :all describe "GET show" do describe "When logged in as Administrator" do before(:each) do sign_in User.friendly.find('enjuadmin') end it "assigns the requested user as @user" do get :show, params: { id: 'admin...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/classifications_controller_spec.rb
spec/controllers/classifications_controller_spec.rb
require 'rails_helper' describe ClassificationsController do fixtures :all def valid_attributes FactoryBot.attributes_for(:classification) end describe 'GET index', solr: true do before do Classification.reindex end describe 'When logged in as Administrator' do login_admin ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/form_of_works_controller_spec.rb
spec/controllers/form_of_works_controller_spec.rb
require 'rails_helper' # This spec was generated by rspec-rails when you ran the scaffold generator. # It demonstrates how one might use RSpec to specify the controller code that # was generated by Rails when you ran the scaffold generator. # # It assumes that the implementation code is generated by the rails scaffold...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/purchase_requests_controller_spec.rb
spec/controllers/purchase_requests_controller_spec.rb
require 'rails_helper' describe PurchaseRequestsController do fixtures :all describe 'GET index', solr: true do before do PurchaseRequest.reindex end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all purchase_requests as @purchase_requests' do ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/checkout_types_controller_spec.rb
spec/controllers/checkout_types_controller_spec.rb
require 'rails_helper' describe CheckoutTypesController do fixtures :all describe 'GET index' do before(:each) do FactoryBot.create(:checkout_type) end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all checkout_types as @checkout_types' do ge...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/donates_controller_spec.rb
spec/controllers/donates_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe DonatesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:donate) end describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns al...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/series_statement_merges_controller_spec.rb
spec/controllers/series_statement_merges_controller_spec.rb
require 'rails_helper' describe SeriesStatementMergesController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_admin it 'assigns all series_statement_merges as @series_statement_merges' do get :index assigns(:series_statement_merges).s...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/carrier_type_has_checkout_types_controller_spec.rb
spec/controllers/carrier_type_has_checkout_types_controller_spec.rb
require 'rails_helper' describe CarrierTypeHasCheckoutTypesController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all carrier_type_has_checkout_types as @carrier_type_has_checkout_types' do get :index assig...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/frequencies_controller_spec.rb
spec/controllers/frequencies_controller_spec.rb
require 'rails_helper' # This spec was generated by rspec-rails when you ran the scaffold generator. # It demonstrates how one might use RSpec to specify the controller code that # was generated by Rails when you ran the scaffold generator. # # It assumes that the implementation code is generated by the rails scaffold...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/profiles_controller_spec.rb
spec/controllers/profiles_controller_spec.rb
require 'rails_helper' describe ProfilesController do fixtures :all before(:each) do @admin_profile = FactoryBot.create(:admin).profile @librarian_profile = FactoryBot.create(:librarian).profile end describe "GET index" do describe "When logged in as Administrator" do login_fixture_admin ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/inventories_controller_spec.rb
spec/controllers/inventories_controller_spec.rb
require 'rails_helper' describe InventoriesController do fixtures :all describe "GET index" do describe "When logged in as Administrator" do login_fixture_admin it "assigns all inventories as @inventories" do get :index expect(assigns(:inventories)).to eq(Inventory.page(1)) ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/user_import_files_controller_spec.rb
spec/controllers/user_import_files_controller_spec.rb
require 'rails_helper' describe UserImportFilesController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all user_import_files as @user_import_files' do get :index assigns(:user_import_files).should eq(UserImp...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/checked_items_controller_spec.rb
spec/controllers/checked_items_controller_spec.rb
require 'rails_helper' describe CheckedItemsController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all checked_items as @checked_items' do get :index assigns(:checked_items).should_not be_empty resp...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/request_status_type_spec.rb
spec/models/request_status_type_spec.rb
require 'rails_helper' describe RequestStatusType do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: request_status_types # # id :bigint not null, primary key # display_name :text # name :string not null # note :t...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/purchase_request_spec.rb
spec/models/purchase_request_spec.rb
require 'rails_helper' describe PurchaseRequest do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: purchase_requests # # id :bigint not null, primary key # accepted_at :datetime # author :text # date_of_publicat...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/agent_spec.rb
spec/models/agent_spec.rb
require 'rails_helper' describe Agent do # pending "add some examples to (or delete) #{__FILE__}" fixtures :all it "should set a default required_role to Guest" do agent = FactoryBot.create(:agent) agent.required_role.should eq Role.find_by(name: 'Guest') end it "should set birth_date" do agent...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/accept_spec.rb
spec/models/accept_spec.rb
require 'rails_helper' describe Accept do fixtures :all it "should change circulation_status" do expect(items(:item_00012).circulation_status.name).to eq 'Circulation Status Undefined' expect(items(:item_00012).use_restriction.name).to eq 'Not For Loan' accept = FactoryBot.create(:accept, item: items...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/user_export_file_spec.rb
spec/models/user_export_file_spec.rb
require 'rails_helper' describe UserExportFile do fixtures :all it "should export users" do message_count = Message.count file = UserExportFile.create(user: users(:admin)) file.export! #UserExportFileJob.perform_later(file).should be_truthy Message.count.should eq message_count + 1 Mes...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/realize_type_spec.rb
spec/models/realize_type_spec.rb
require 'rails_helper' describe RealizeType do it 'should create realize_type' do FactoryBot.create(:realize_type) end end # == Schema Information # # Table name: realize_types # # id :bigint not null, primary key # display_name :text # name :string not null # note ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/frequency_spec.rb
spec/models/frequency_spec.rb
require 'rails_helper' describe Frequency do fixtures :frequencies it "should should have display_name" do frequencies(:frequency_00001).display_name.should_not be_nil end end # == Schema Information # # Table name: frequencies # # id :bigint not null, primary key # display_name :text...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/item_has_use_resetriction_spec.rb
spec/models/item_has_use_resetriction_spec.rb
require 'rails_helper' describe ItemHasUseRestriction do # pending "add some examples to (or delete) #{__FILE__}" end
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/country_spec.rb
spec/models/country_spec.rb
require 'rails_helper' describe Country do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: countries # # id :bigint not null, primary key # alpha_2 :string # alpha_3 :string # display_name :text # name :string ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/withdraw_spec.rb
spec/models/withdraw_spec.rb
require 'rails_helper' RSpec.describe Withdraw, type: :model do fixtures :all it "should change circulation_status" do withdraw = FactoryBot.create(:withdraw) expect(withdraw.item.circulation_status.name).to eq 'Removed' expect(withdraw.item.use_restriction.name).to eq 'Not For Loan' end it "shou...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/event_export_file_spec.rb
spec/models/event_export_file_spec.rb
require 'rails_helper' describe EventExportFile do fixtures :all it "should export in background" do message_count = Message.count file = EventExportFile.new file.user = users(:admin) file.save expect(EventExportFileJob.perform_later(file)).to be_truthy # Message.count.should eq message_co...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/ndl_book_spec.rb
spec/models/ndl_book_spec.rb
require 'rails_helper' describe NdlBook do fixtures :all it "should respond to per_page" do NdlBook.per_page.should eq 10 end context 'search' do it 'should search bibliographic record', vcr: true do NdlBook.search('library system')[:total_entries].should eq 2282 end it "should not dis...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/library_spec.rb
spec/models/library_spec.rb
require 'rails_helper' describe Library do fixtures :all before(:each) do @library = FactoryBot.create(:library) end it "should should create default shelf" do @library.shelves.first.should be_truthy @library.shelves.first.name.should eq "#{@library.name}_default" end end # == Schema Informati...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/user_reserve_stat_spec.rb
spec/models/user_reserve_stat_spec.rb
require 'rails_helper' describe UserReserveStat do fixtures :user_reserve_stats it "calculates user count" do old_message_count = Message.count user_reserve_stats(:one).transition_to!(:started).should be_truthy Message.count.should eq old_message_count + 1 Message.order(:id).last.subject.should eq...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/doi_record_spec.rb
spec/models/doi_record_spec.rb
require 'rails_helper' RSpec.describe DoiRecord, type: :model do pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: doi_records # # id :bigint not null, primary key # body :string not null # created_at :datetime ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/agent_relationship_spec.rb
spec/models/agent_relationship_spec.rb
require 'rails_helper' describe AgentRelationship do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: agent_relationships # # id :bigint not null, primary key # position :integer # created_at ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/subscribe_spec.rb
spec/models/subscribe_spec.rb
require 'rails_helper' describe Subscribe do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: subscribes # # id :bigint not null, primary key # end_at :datetime not null # start_at :datetime not null # cre...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/event_category_spec.rb
spec/models/event_category_spec.rb
require 'rails_helper' describe EventCategory do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: event_categories # # id :bigint not null, primary key # name :string not null # display_name :text # note :text # p...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/carrier_type_has_checkout_type_spec.rb
spec/models/carrier_type_has_checkout_type_spec.rb
require 'rails_helper' describe CarrierTypeHasCheckoutType do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: carrier_type_has_checkout_types # # id :bigint not null, primary key # note :text # position :integer # ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/manifestation_reserve_stat_spec.rb
spec/models/manifestation_reserve_stat_spec.rb
require 'rails_helper' describe ManifestationReserveStat do fixtures :manifestation_reserve_stats it "calculates manifestation count" do old_message_count = Message.count manifestation_reserve_stats(:one).transition_to!(:started).should be_truthy Message.count.should eq old_message_count + 1 Messa...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/order_list_spec.rb
spec/models/order_list_spec.rb
require 'rails_helper' describe OrderList do fixtures :all it "should calculate total price" do order_list = order_lists(:order_list_00001) order_list.total_price.should eq 0 order_list.purchase_requests << purchase_requests(:purchase_request_00006) order_list.total_price.should eq purchase_reques...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/participate_spec.rb
spec/models/participate_spec.rb
require 'rails_helper' describe Participate do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: participates # # id :bigint not null, primary key # position :integer # created_at :datetime not null # updated_at :datetime not...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/bookstore_spec.rb
spec/models/bookstore_spec.rb
require 'rails_helper' describe Bookstore do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: bookstores # # id :bigint not null, primary key # name :text not null # zip_code :string # address :t...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/budget_type_spec.rb
spec/models/budget_type_spec.rb
require 'rails_helper' describe BudgetType do it 'should create budget_type' do FactoryBot.create(:budget_type) end end # == Schema Information # # Table name: budget_types # # id :bigint not null, primary key # display_name :text # name :string not null # note ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/search_engine_spec.rb
spec/models/search_engine_spec.rb
require 'rails_helper' describe SearchEngine do fixtures :search_engines it "should respond to search_params" do search_engines(:search_engine_00001).search_params('test').should eq({ submit: 'Search', locale: 'ja', keyword: 'test' }) end end # == Schema Information # # Table name: search_engines # # id ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/picture_file_spec.rb
spec/models/picture_file_spec.rb
require 'rails_helper' describe PictureFile do fixtures :all it "should move position" do picture_file = PictureFile.find(1) expect(picture_file.first?).to be_truthy picture_file.move_lower expect(picture_file.last?).to be_truthy end end # == Schema Information # # Table name: picture_files # #...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/shelf_spec.rb
spec/models/shelf_spec.rb
require 'rails_helper' describe Shelf do fixtures :all it "should respond to web_shelf" do shelves(:shelf_00001).web_shelf?.should be_truthy shelves(:shelf_00002).web_shelf?.should_not be_truthy end end # == Schema Information # # Table name: shelves # # id :bigint not null, primar...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/user_group_spec.rb
spec/models/user_group_spec.rb
require 'rails_helper' describe UserGroup do fixtures :user_groups it "should contain string in its display_name" do user_group = user_groups(:user_group_00001) user_group.display_name = "en:test" user_group.valid?.should be_truthy end it "should not contain invalid yaml in its display_name" do ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/basket_spec.rb
spec/models/basket_spec.rb
require 'rails_helper' describe Basket do fixtures :all it "should not create basket when user is not active" do Basket.create(user: users(:user4)).id.should be_nil end it "should save shelf and library" do items(:item_00011).checkouts.count.should eq 0 basket_1 = Basket.new basket_1.user = u...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/agent_import_file_spec.rb
spec/models/agent_import_file_spec.rb
require 'rails_helper' describe AgentImportFile do fixtures :all describe "when its mode is 'create'" do before(:each) do @file = AgentImportFile.create! attachment: fixture_file_upload("agent_import_file_sample1.tsv"), user: users(:admin) end it "should be imported" do old_agents_count =...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/message_spec.rb
spec/models/message_spec.rb
require 'rails_helper' describe Message do fixtures :all before(:each) do @message = FactoryBot.create(:message) end it 'should require body' do @message.errors[:body].should be_truthy end it 'should require recipient' do @message.errors[:recipient].should be_truthy end it 'should requi...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/inventory_spec.rb
spec/models/inventory_spec.rb
require 'rails_helper' describe Inventory do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: inventories # # id :bigint not null, primary key # current_shelf_name :string # item_identifier :string # note :text # cr...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/produce_spec.rb
spec/models/produce_spec.rb
require 'rails_helper' describe Produce do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: produces # # id :bigint not null, primary key # position :integer # created_at :datetime not null # updated_at :dat...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/agent_type_spec.rb
spec/models/agent_type_spec.rb
require 'rails_helper' describe AgentType do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: agent_types # # id :bigint not null, primary key # display_name :text # name :string not null # note :text # position ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/checked_item_spec.rb
spec/models/checked_item_spec.rb
require 'rails_helper' describe CheckedItem do fixtures :all it "should respond to available_for_checkout?" do checked_items(:checked_item_00001).available_for_checkout?.should_not be_truthy end it "should change circulation_status when a missing item is found" do basket = Basket.new basket.user ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/library_group_spec.rb
spec/models/library_group_spec.rb
require 'rails_helper' describe LibraryGroup do fixtures :library_groups, :users before(:each) do @library_group = LibraryGroup.find(1) end it "should get library_group_config" do LibraryGroup.site_config.should be_truthy end it "should set 1000 as max_number_of_results" do expect(LibraryGro...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/create_spec.rb
spec/models/create_spec.rb
require 'rails_helper' describe Create do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: creates # # id :bigint not null, primary key # position :integer # created_at :datetime not null # updated_at :datetime ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/manifestation_relationship_spec.rb
spec/models/manifestation_relationship_spec.rb
require 'rails_helper' describe ManifestationRelationship do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: manifestation_relationships # # id :bigint not null, primary key # position :intege...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/series_statement_spec.rb
spec/models/series_statement_spec.rb
require 'rails_helper' describe SeriesStatement do fixtures :all it "should create manifestation" do series_statement = FactoryBot.create(:series_statement) series_statement.root_manifestation.should be_nil end end # == Schema Information # # Table name: series_statements # # id ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/manifestation_relationship_type_spec.rb
spec/models/manifestation_relationship_type_spec.rb
require 'rails_helper' describe ManifestationRelationshipType do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: manifestation_relationship_types # # id :bigint not null, primary key # display_name :text # name :string no...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/agent_merge_spec.rb
spec/models/agent_merge_spec.rb
require 'rails_helper' describe AgentMerge do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: agent_merges # # id :bigint not null, primary key # created_at :datetime not null # updated_at :datetime ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/own_spec.rb
spec/models/own_spec.rb
require 'rails_helper' describe Own do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: owns # # id :bigint not null, primary key # position :integer # created_at :datetime not null # updated_at :datetime not null # agent_...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/agent_relationship_type_spec.rb
spec/models/agent_relationship_type_spec.rb
require 'rails_helper' describe AgentRelationshipType do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: agent_relationship_types # # id :bigint not null, primary key # display_name :text # name :string not null # note ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/agent_merge_list_spec.rb
spec/models/agent_merge_list_spec.rb
require 'rails_helper' describe AgentMergeList do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: agent_merge_lists # # id :bigint not null, primary key # title :string # created_at :datetime not null # updated_at :datetime ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/form_of_work_spec.rb
spec/models/form_of_work_spec.rb
require 'rails_helper' describe FormOfWork do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: form_of_works # # id :bigint not null, primary key # display_name :text # name :string not null # note :text # positi...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/order_spec.rb
spec/models/order_spec.rb
require 'rails_helper' describe Order do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: orders # # id :bigint not null, primary key # position :integer # created_at :datetime not null # updated_at ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/series_statement_merge_list_spec.rb
spec/models/series_statement_merge_list_spec.rb
require 'rails_helper' describe SeriesStatementMergeList do fixtures :all it "should merge series_statement" do series_statement_merge_list = series_statement_merge_lists(:series_statement_merge_list_00001) end end # == Schema Information # # Table name: series_statement_merge_lists # # id :bigint...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/carrier_type_spec.rb
spec/models/carrier_type_spec.rb
require 'rails_helper' describe CarrierType do fixtures :carrier_types it "should respond to mods_type" do carrier_types(:carrier_type_00001).mods_type.should eq 'text' carrier_types(:carrier_type_00002).mods_type.should eq 'software, multimedia' end end # == Schema Information # # Table name: carrier_...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/circulation_status_spec.rb
spec/models/circulation_status_spec.rb
require 'rails_helper' describe CirculationStatus do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: circulation_statuses # # id :bigint not null, primary key # display_name :text # name :string not null # note :...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/manifestation_spec.rb
spec/models/manifestation_spec.rb
require 'rails_helper' describe Manifestation, solr: true do fixtures :all before(:context) do Manifestation.reindex end context "search" do it "should set year_of_publication" do manifestation = FactoryBot.create(:manifestation, pub_date: '2000') manifestation.year_of_publication.should e...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/import_request_spec.rb
spec/models/import_request_spec.rb
require 'rails_helper' describe ImportRequest do fixtures :all context "import" do it "should import bibliographic record", vcr: true do old_count = Manifestation.count import_request = ImportRequest.create(isbn: '9784797350999') import_request.import! expect(Manifestation.count).to eq...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/subscription_spec.rb
spec/models/subscription_spec.rb
require 'rails_helper' describe Subscription do fixtures :subscriptions, :manifestations, :subscribes it "should_respond_to_subscribed" do subscriptions(:subscription_00001).subscribed(manifestations(:manifestation_00001)).should be_truthy end end # == Schema Information # # Table name: subscriptions # # ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/donate_spec.rb
spec/models/donate_spec.rb
require 'rails_helper' describe Donate do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: donates # # id :bigint not null, primary key # created_at :datetime not null # updated_at :datetime not null # agent_id :bigint ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/news_post_spec.rb
spec/models/news_post_spec.rb
require 'rails_helper' describe NewsPost do end # == Schema Information # # Table name: news_posts # # id :bigint not null, primary key # body :text # draft :boolean default(FALSE), not null # end_date :datetime # note :text # position ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/license_spec.rb
spec/models/license_spec.rb
require 'rails_helper' describe License do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: licenses # # id :bigint not null, primary key # display_name :string # name :string not null # note :text # position ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/resource_import_result_spec.rb
spec/models/resource_import_result_spec.rb
require 'rails_helper' describe ResourceImportResult do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: resource_import_results # # id :bigint not null, primary key # body :text # error_message :text...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/role_spec.rb
spec/models/role_spec.rb
require 'spec_helper' describe Role do #pending "add some examples to (or delete) #{__FILE__}" fixtures :roles it "should not be saved if name is blank" do role = Role.first role.name = '' lambda {role.save!}.should raise_error(ActiveRecord::RecordInvalid) end it "should not be saved if name is...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/event_import_result_spec.rb
spec/models/event_import_result_spec.rb
require 'rails_helper' describe EventImportResult do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: event_import_results # # id :bigint not null, primary key # event_import_file_id :bigint # event_id :bigint # body ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/manifestation_custom_value_spec.rb
spec/models/manifestation_custom_value_spec.rb
require 'rails_helper' RSpec.describe ManifestationCustomValue, type: :model do pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: manifestation_custom_values # # id :bigint not null, primary key # value ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/user_has_role_spec.rb
spec/models/user_has_role_spec.rb
require 'spec_helper' describe UserHasRole do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: user_has_roles # # id :bigint not null, primary key # created_at :datetime not null # updated_at :datetime not null # role_id :b...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/user_checkout_stat_spec.rb
spec/models/user_checkout_stat_spec.rb
require 'rails_helper' describe UserCheckoutStat do fixtures :user_checkout_stats it "calculates user count" do old_message_count = Message.count user_checkout_stats(:one).transition_to!(:started).should be_truthy Message.count.should eq old_message_count + 1 Message.order(:id).last.subject.should...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/profile_spec.rb
spec/models/profile_spec.rb
require 'rails_helper' describe Profile do #pending "add some examples to (or delete) #{__FILE__}" fixtures :all it 'should create a profile' do FactoryBot.create(:profile) end it 'should destroy a profile' do profile = FactoryBot.create(:profile) profile.destroy.should be_truthy end it 's...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/cinii_book_spec.rb
spec/models/cinii_book_spec.rb
require 'rails_helper' describe CiniiBook do fixtures :all it "should search bibliographic records", vcr: true do CiniiBook.search("library system")[:total_entries].should eq 3934 end it "should search with ncid", vcr: true do result = CiniiBook.search("BA85746967") result.should be_truthy re...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/reserve_stat_has_manifestation_spec.rb
spec/models/reserve_stat_has_manifestation_spec.rb
require 'rails_helper' describe ReserveStatHasManifestation do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: reserve_stat_has_manifestations # # id :bigint not null, primary key # reserves_count :integer # ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/checkout_stat_has_manifestation_spec.rb
spec/models/checkout_stat_has_manifestation_spec.rb
require 'rails_helper' describe CheckoutStatHasManifestation do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: checkout_stat_has_manifestations # # id :bigint not null, primary key # checkouts_count :intege...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/produce_type_spec.rb
spec/models/produce_type_spec.rb
require 'rails_helper' describe ProduceType do it 'should create produce_type' do FactoryBot.create(:produce_type) end end # == Schema Information # # Table name: produce_types # # id :bigint not null, primary key # display_name :text # name :string not null # note ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/news_feed_spec.rb
spec/models/news_feed_spec.rb
require 'rails_helper' describe NewsFeed do fixtures :news_feeds it "should get content", vcr: true do feed = news_feeds(:news_feed_00001) feed.force_reload feed.content.should be_truthy end it "should not get content if the feed is invalid", vcr: true do feed = news_feeds(:news_feed_00002) ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/periodical_and_manifestation_spec.rb
spec/models/periodical_and_manifestation_spec.rb
require 'rails_helper' RSpec.describe PeriodicalAndManifestation, type: :model do pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: periodical_and_manifestations # # id :bigint not null, primary key # created_at :datetime not n...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/identifier_type_spec.rb
spec/models/identifier_type_spec.rb
require 'rails_helper' describe IdentifierType do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: identifier_types # # id :bigint not null, primary key # display_name :text # name :string not null # note :text # ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/resource_import_file_spec.rb
spec/models/resource_import_file_spec.rb
require 'rails_helper' describe ResourceImportFile do fixtures :all describe "when its mode is 'create'" do describe "when it is written in utf-8" do before(:each) do @file = ResourceImportFile.create( attachment: fixture_file_upload("resource_import_file_sample1.tsv"), d...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/checkout_spec.rb
spec/models/checkout_spec.rb
require 'rails_helper' describe Checkout do # pending "add some examples to (or delete) #{__FILE__}" fixtures :all it "should respond to renewable?" do checkouts(:checkout_00001).save expect(checkouts(:checkout_00001).errors[:base]).to eq [] checkouts(:checkout_00002).save expect(checkouts(:chec...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/manifestation_checkout_stat_spec.rb
spec/models/manifestation_checkout_stat_spec.rb
require 'rails_helper' describe ManifestationCheckoutStat do fixtures :manifestation_checkout_stats it "calculates manifestation count" do old_message_count = Message.count manifestation_checkout_stats(:one).transition_to!(:started).should be_truthy Message.count.should eq old_message_count + 1 Me...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/reserve_spec.rb
spec/models/reserve_spec.rb
require 'rails_helper' describe Reserve do fixtures :all it "should have next reservation" do expect(reserves(:reserve_00014).state_machine.current_state).to eq "retained" expect(reserves(:reserve_00014).next_reservation).to eq reserves(:reserve_00015) reserves(:reserve_00014).transition_to!(:canceled...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/item_custom_value_spec.rb
spec/models/item_custom_value_spec.rb
require 'rails_helper' RSpec.describe ItemCustomValue, type: :model do pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: item_custom_values # # id :bigint not null, primary key # value :text # created_at ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/create_type_spec.rb
spec/models/create_type_spec.rb
require 'rails_helper' describe CreateType do it 'should create create_type' do FactoryBot.create(:create_type) end end # == Schema Information # # Table name: create_types # # id :bigint not null, primary key # display_name :text # name :string not null # note ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/item_spec.rb
spec/models/item_spec.rb
require 'rails_helper' describe Item do # pending "add some examples to (or delete) #{__FILE__}" fixtures :all it "should be rent" do items(:item_00001).rent?.should be_truthy end it "should not be rent" do items(:item_00010).rent?.should be_falsy end it "should be checked out" do items(:i...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/event_spec.rb
spec/models/event_spec.rb
require 'rails_helper' describe Event do fixtures :events it "should set_all_day" do event = events(:event_00001) event.all_day = true event.set_all_day expect(event.all_day).to be_truthy end it "should set all_day and beginning_of_day" do event = events(:event_00008) event.all_day = ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/models/loc_search_spec.rb
spec/models/loc_search_spec.rb
require "rails_helper" describe LocSearch do fixtures :all context ".import_from_sru_response" do it "should create a valid manifestation", vcr: true do manifestation = LocSearch.import_from_sru_response("2007012024") expect(manifestation.manifestation_identifier).to eq "14780655" expect(man...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false