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/factories/manifestation_checkout_stats.rb
spec/factories/manifestation_checkout_stats.rb
FactoryBot.define do factory :manifestation_checkout_stat do start_date { 1.week.ago } end_date { 1.day.ago } association :user, factory: :librarian end end # == Schema Information # # Table name: manifestation_checkout_stats # # id :bigint not null, primary key # completed_at :da...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/factories/bookstores.rb
spec/factories/bookstores.rb
FactoryBot.define do factory :bookstore do |f| f.sequence(:name) {|n| "bookstore_#{n}"} end end # == Schema Information # # Table name: bookstores # # id :bigint not null, primary key # name :text not null # zip_code :string # address :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/factories/use_restrictions.rb
spec/factories/use_restrictions.rb
FactoryBot.define do factory :use_restriction do |f| f.sequence(:name) {|n| "use_restriction_#{n}"} end end # == Schema Information # # Table name: use_restrictions # # 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/factories/manifestation_reserve_stats.rb
spec/factories/manifestation_reserve_stats.rb
FactoryBot.define do factory :manifestation_reserve_stat do start_date { 1.week.ago } end_date { 1.day.ago } association :user, factory: :librarian end end # == Schema Information # # Table name: manifestation_reserve_stats # # id :bigint not null, primary key # completed_at :date...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/factories/item_has_use_restrictions.rb
spec/factories/item_has_use_restrictions.rb
FactoryBot.define do factory :item_has_use_restriction do |f| f.item_id {FactoryBot.create(:item).id} f.use_restriction_id {FactoryBot.create(:use_restriction).id} end end # == Schema Information # # Table name: item_has_use_restrictions # # id :bigint not null, primary key # 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/factories/subjects.rb
spec/factories/subjects.rb
FactoryBot.define do factory :subject do |f| f.sequence(:term) {|n| "subject_#{n}"} f.subject_heading_type_id {FactoryBot.create(:subject_heading_type).id} f.subject_type_id {FactoryBot.create(:subject_type).id} end end # == Schema Information # # Table name: subjects # # id :bigi...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/factories/subscriptions.rb
spec/factories/subscriptions.rb
FactoryBot.define do factory :subscription do |f| f.sequence(:title) {|n| "subscription_#{n}"} f.user_id {FactoryBot.create(:user).id} end end # == Schema Information # # Table name: subscriptions # # id :bigint not null, primary key # note :text # subscribes_count :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/factories/realizes.rb
spec/factories/realizes.rb
FactoryBot.define do factory :realize do |f| f.expression_id {FactoryBot.create(:manifestation).id} f.agent_id {FactoryBot.create(:agent).id} end end # == Schema Information # # Table name: realizes # # 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/factories/owns.rb
spec/factories/owns.rb
FactoryBot.define do factory :own do |f| f.item_id {FactoryBot.create(:item).id} f.agent_id {FactoryBot.create(:agent).id} end end # == Schema Information # # Table name: owns # # id :bigint not null, primary key # position :integer # created_at :datetime not null # updated_...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/factories/shelves.rb
spec/factories/shelves.rb
FactoryBot.define do factory :shelf do |f| f.sequence(:name) {|n| "shelf_#{n}"} f.library_id {FactoryBot.create(:library).id} end end # == Schema Information # # Table name: shelves # # id :bigint not null, primary key # closed :boolean default(FALSE), not null # displ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/factories/user_reserve_stats.rb
spec/factories/user_reserve_stats.rb
FactoryBot.define do factory :user_reserve_stat do start_date { 1.week.ago } end_date { 1.day.ago } association :user, factory: :librarian end end # == Schema Information # # Table name: user_reserve_stats # # id :bigint not null, primary key # completed_at :datetime # end_date ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/factories/agent_relationships.rb
spec/factories/agent_relationships.rb
FactoryBot.define do factory :agent_relationship do |f| f.parent_id {FactoryBot.create(:agent).id} f.child_id {FactoryBot.create(:agent).id} f.association :agent_relationship_type end end # == Schema Information # # Table name: agent_relationships # # id :bigint 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/factories/form_of_works.rb
spec/factories/form_of_works.rb
FactoryBot.define do factory :form_of_work do |f| f.sequence(:name) {|n| "form_of_work_#{n}"} end end # == Schema Information # # Table name: form_of_works # # id :bigint not null, primary key # display_name :text # name :string not null # note :text # positio...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/factories/search_engines.rb
spec/factories/search_engines.rb
FactoryBot.define do factory :search_engine do |f| f.sequence(:name) {|n| "search_engine_#{n}"} f.sequence(:url) {|n| "http://search-engine-#{n}.example.jp"} f.sequence(:base_url) {|n| "http://search-engine-#{n}.example.jp"} f.query_param { 'q' } f.http_method { 'get' } end end # == Schema Info...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/factories/creates.rb
spec/factories/creates.rb
FactoryBot.define do factory :create do work_id {FactoryBot.create(:manifestation).id} agent_id {FactoryBot.create(:agent).id} association :create_type end end # == Schema Information # # Table name: creates # # id :bigint not null, primary key # position :integer # creat...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/factories/medium_of_performances.rb
spec/factories/medium_of_performances.rb
FactoryBot.define do factory :medium_of_performance do |f| f.sequence(:name) {|n| "medium_of_performance_#{n}"} end end # == Schema Information # # Table name: medium_of_performances # # id :bigint not null, primary key # display_name :text # name :string not null # 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/factories/subscribes.rb
spec/factories/subscribes.rb
FactoryBot.define do factory :subscribe do |f| f.subscription_id {FactoryBot.create(:subscription).id} f.work_id {FactoryBot.create(:manifestation).id} f.start_at { 1.year.ago } f.end_at { 1.year.from_now } end end # == Schema Information # # Table name: subscribes # # 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/factories/request_status_types.rb
spec/factories/request_status_types.rb
FactoryBot.define do factory :request_status_type do |f| f.sequence(:name) {|n| "request_status_type_#{n}"} end end # == Schema Information # # Table name: request_status_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/factories/tags.rb
spec/factories/tags.rb
FactoryBot.define do factory :tag do |f| f.sequence(:name) {|n| "tag_#{n}"} end end # == Schema Information # # Table name: tags # # id :bigint not null, primary key # name :string not null # taggings_count :integer default(0) # 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/factories/manifestation_relationship_types.rb
spec/factories/manifestation_relationship_types.rb
FactoryBot.define do factory :manifestation_relationship_type do sequence(:name) {|n| "manifestation_relationship_type_#{n}"} end end # == Schema Information # # Table name: manifestation_relationship_types # # id :bigint not null, primary key # 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/factories/produce_types.rb
spec/factories/produce_types.rb
# Read about factories at http://github.com/thoughtbot/factory_bot FactoryBot.define do factory :produce_type do name { "mystring" } display_name { "MyText" } note { "MyText" } end end # == Schema Information # # Table name: produce_types # # id :bigint not null, primary key # di...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/factories/purchase_requests.rb
spec/factories/purchase_requests.rb
FactoryBot.define do factory :purchase_request do |f| f.sequence(:title) {|n| "purchase_request_#{n}"} f.user_id {FactoryBot.create(:user).id} end end # == Schema Information # # Table name: purchase_requests # # id :bigint not null, primary key # accepted_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/controllers/request_status_types_controller_spec.rb
spec/controllers/request_status_types_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe RequestStatusTypesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:request_status_type) end describe 'GET index' do before(:each) do FactoryBot.create(:request_status_type) en...
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/agent_relationship_types_controller_spec.rb
spec/controllers/agent_relationship_types_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe AgentRelationshipTypesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:agent_relationship_type) end describe 'GET index' do before(:each) do FactoryBot.create(:agent_relationship_...
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/libraries_controller_spec.rb
spec/controllers/libraries_controller_spec.rb
require 'rails_helper' describe LibrariesController do fixtures :all describe 'GET index', solr: true do before do Library.reindex end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all libraries as @libraries' do get :index assigns(:l...
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/subjects_controller_spec.rb
spec/controllers/subjects_controller_spec.rb
require 'rails_helper' describe SubjectsController do fixtures :all def valid_attributes FactoryBot.attributes_for(:subject) end describe 'GET index', solr: true do before do Subject.reindex end describe 'When logged in as Administrator' do login_admin it 'assigns all subj...
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/checkouts_controller_spec.rb
spec/controllers/checkouts_controller_spec.rb
require 'rails_helper' describe CheckoutsController do fixtures :all describe 'GET index', solr: true do before do Checkout.reindex end before(:each) do FactoryBot.create(:profile) end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all ...
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/create_types_controller_spec.rb
spec/controllers/create_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/item_has_use_restrictions_controller_spec.rb
spec/controllers/item_has_use_restrictions_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe ItemHasUseRestrictionsController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:item_has_use_restriction) end describe 'GET index' do before(:each) do FactoryBot.create(:item_has_use_restr...
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/medium_of_performances_controller_spec.rb
spec/controllers/medium_of_performances_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/picture_files_controller_spec.rb
spec/controllers/picture_files_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe PictureFilesController do fixtures :all disconnect_sunspot describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all picture_files as @picture_files' 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/messages_controller_spec.rb
spec/controllers/messages_controller_spec.rb
require 'rails_helper' describe MessagesController do fixtures :all describe 'GET index', solr: true do before do Message.reindex end describe 'When logged in as Administrator' do login_fixture_admin it 'should get its own messages' do get :index assigns(:messages)....
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/content_types_controller_spec.rb
spec/controllers/content_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/manifestation_reserve_stats_controller_spec.rb
spec/controllers/manifestation_reserve_stats_controller_spec.rb
require 'rails_helper' describe ManifestationReserveStatsController do fixtures :all describe 'GET index' do before(:each) do FactoryBot.create(:manifestation_reserve_stat) end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all manifestation_reserve_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/item_custom_properties_controller_spec.rb
spec/controllers/item_custom_properties_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe ItemCustomPropertiesController do fixtures :all disconnect_sunspot def valid_attributes @attrs = FactoryBot.attributes_for(:item_custom_property) end describe 'GET index' do before(:each) do FactoryBot.create(:item_custom_pro...
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/checkins_controller_spec.rb
spec/controllers/checkins_controller_spec.rb
require 'rails_helper' describe CheckinsController do fixtures :all def mock_user(stubs = {}) (@mock_user ||= mock_model(Checkin).as_null_object).tap do |user| user.stub(stubs) unless stubs.empty? end end describe 'GET index' do describe 'When logged in as Administrator' do login_fixt...
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_statements_controller_spec.rb
spec/controllers/series_statements_controller_spec.rb
require 'rails_helper' describe SeriesStatementsController do fixtures :users def valid_attributes FactoryBot.attributes_for(:series_statement) end describe 'GET index', solr: true do before do SeriesStatement.reindex end describe 'When logged in as Administrator' do login_fixtur...
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/baskets_controller_spec.rb
spec/controllers/baskets_controller_spec.rb
require 'rails_helper' describe BasketsController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all baskets as @baskets' do get :index, params: { user_id: users(:user1).username } assigns(:baskets).should_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/controllers/nii_types_controller_spec.rb
spec/controllers/nii_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/withdraws_controller_spec.rb
spec/controllers/withdraws_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/shelves_controller_spec.rb
spec/controllers/shelves_controller_spec.rb
require 'rails_helper' describe ShelvesController do fixtures :all def valid_attributes FactoryBot.attributes_for(:shelf) end describe 'GET index', solr: true do before do Shelf.reindex end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all 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/orders_controller_spec.rb
spec/controllers/orders_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe OrdersController do fixtures :all disconnect_sunspot describe 'GET index' do before(:each) do FactoryBot.create(:order) end describe 'When logged in as Administrator' do before(:each) do sign_in FactoryBot.creat...
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/circulation_statuses_controller_spec.rb
spec/controllers/circulation_statuses_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe CirculationStatusesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:circulation_status) end describe 'GET index' do before(:each) do FactoryBot.create(:circulation_status) 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/controllers/bookmarks_controller_spec.rb
spec/controllers/bookmarks_controller_spec.rb
require 'rails_helper' describe BookmarksController do fixtures :all describe "GET index", solr: true do before do Bookmark.reindex end describe "When logged in as Administrator" do login_fixture_admin it "assigns all bookmarks as @bookmarks" do get :index expect(as...
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_import_results_controller_spec.rb
spec/controllers/event_import_results_controller_spec.rb
require 'rails_helper' describe EventImportResultsController do fixtures :all describe "GET index" do describe "When logged in as Administrator" do login_fixture_admin it "assigns all event_import_results as @event_import_results" do get :index assigns(:event_import_results).shoul...
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/tags_controller_spec.rb
spec/controllers/tags_controller_spec.rb
require 'rails_helper' describe TagsController do fixtures :all describe "GET index", solr: true do before do Tag.reindex end describe "When logged in as Administrator" do login_fixture_admin it "assigns all tags as @tags" do get :index expect(assigns(:tags)).not_to...
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_groups_controller_spec.rb
spec/controllers/user_groups_controller_spec.rb
require 'rails_helper' describe UserGroupsController do fixtures :all def valid_attributes FactoryBot.attributes_for(:user_group) end describe 'GET index' do before(:each) do FactoryBot.create(:user_group) end 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/event_categories_controller_spec.rb
spec/controllers/event_categories_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe EventCategoriesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:event_category) end describe "GET index" do before(:each) do FactoryBot.create(:event_category) end descri...
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/agents_controller_spec.rb
spec/controllers/agents_controller_spec.rb
require 'rails_helper' describe AgentsController do fixtures :all def valid_attributes FactoryBot.attributes_for(:agent) end describe 'GET index', solr: true do before do Agent.reindex end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all ag...
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/owns_controller_spec.rb
spec/controllers/owns_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe OwnsController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:own) end describe 'GET index' do before(:each) do FactoryBot.create(:own) end describe 'When logged in as Administrat...
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/order_lists_controller_spec.rb
spec/controllers/order_lists_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe OrderListsController do disconnect_sunspot fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do before(:each) do sign_in FactoryBot.create(:admin) end it 'assigns all order_lists as ...
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/subscribes_controller_spec.rb
spec/controllers/subscribes_controller_spec.rb
require 'rails_helper' describe SubscribesController do fixtures :all def valid_attributes FactoryBot.attributes_for(:subscribe) end describe 'GET index' do before(:each) do FactoryBot.create(:subscribe) end 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/news_posts_controller_spec.rb
spec/controllers/news_posts_controller_spec.rb
require 'rails_helper' describe NewsPostsController do fixtures :all def valid_attributes FactoryBot.attributes_for(:news_post) end describe "GET index" do before(:each) do FactoryBot.create(:news_post) end describe "When logged in as Administrator" do login_admin it "assi...
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/subscriptions_controller_spec.rb
spec/controllers/subscriptions_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe SubscriptionsController do fixtures :all def valid_attributes FactoryBot.attributes_for(:subscription) end describe 'GET index', solr: true do before do Subscription.reindex end describe 'When logged in as Administrato...
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/agent_relationships_controller_spec.rb
spec/controllers/agent_relationships_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe AgentRelationshipsController do fixtures :all disconnect_sunspot def valid_attributes @attrs = FactoryBot.attributes_for(:agent_relationship) end describe 'GET index' do before(:each) do FactoryBot.create(:agent_relationship)...
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_merge_lists_controller_spec.rb
spec/controllers/series_statement_merge_lists_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe SeriesStatementMergeListsController do disconnect_sunspot describe 'GET index' do describe 'When logged in as Administrator' do login_admin it 'assigns all series_statement_merge_lists as @series_statement_merge_lists' 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/news_feeds_controller_spec.rb
spec/controllers/news_feeds_controller_spec.rb
require 'rails_helper' describe NewsFeedsController do fixtures :all def valid_attributes FactoryBot.attributes_for(:news_feed) end describe "GET index" do before(:each) do FactoryBot.create(:news_feed) end describe "When logged in as Administrator" do login_admin it "assi...
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/manifestation_relationship_types_controller_spec.rb
spec/controllers/manifestation_relationship_types_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe ManifestationRelationshipTypesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:manifestation_relationship_type) end describe 'GET index' do before(:each) do FactoryBot.create(:man...
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/use_restrictions_controller_spec.rb
spec/controllers/use_restrictions_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe UseRestrictionsController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:use_restriction) end describe 'GET index' do before(:each) do FactoryBot.create(:use_restriction) end desc...
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/reserves_controller_spec.rb
spec/controllers/reserves_controller_spec.rb
require 'rails_helper' describe ReservesController do fixtures :all describe 'GET index', solr: true do before do Reserve.reindex end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all reserves as @reserves' do get :index assigns(:rese...
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/bookstores_controller_spec.rb
spec/controllers/bookstores_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe BookstoresController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:bookstore) end describe 'GET index' do before(:each) do FactoryBot.create(:bookstore) end describe 'When logged...
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/items_controller_spec.rb
spec/controllers/items_controller_spec.rb
require 'rails_helper' describe ItemsController do fixtures :all def valid_attributes FactoryBot.attributes_for(:item) end describe 'GET index', solr: true do before do Item.reindex end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all 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/controllers/classification_types_controller_spec.rb
spec/controllers/classification_types_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe ClassificationTypesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:classification_type) end describe 'GET index' do before(:each) do FactoryBot.create(:classification_type) 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/controllers/page_controller_spec.rb
spec/controllers/page_controller_spec.rb
require 'rails_helper' describe PageController do fixtures :all describe "GET page" do describe "When logged in as Librarian" do login_fixture_librarian it "should get import" do get :import expect(response).to be_successful end it "should get configuration" 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/user_reserve_stats_controller_spec.rb
spec/controllers/user_reserve_stats_controller_spec.rb
require 'rails_helper' describe UserReserveStatsController do fixtures :all describe 'GET index' do before(:each) do FactoryBot.create(:user_reserve_stat) end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all user_reserve_stats as @user_reserve_stats...
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/languages_controller_spec.rb
spec/controllers/languages_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe LanguagesController do disconnect_sunspot fixtures :all def valid_attributes FactoryBot.attributes_for(:language) end describe 'GET index' do before(:each) do FactoryBot.create(:language) end describe 'When logged in...
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/agent_import_results_controller_spec.rb
spec/controllers/agent_import_results_controller_spec.rb
require 'rails_helper' describe AgentImportResultsController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all agent_import_results as @agent_import_results' do get :index expect(assigns(:agent_import_results...
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/manifestation_custom_properties_controller_spec.rb
spec/controllers/manifestation_custom_properties_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe ManifestationCustomPropertiesController do fixtures :all disconnect_sunspot def valid_attributes @attrs = FactoryBot.attributes_for(:manifestation_custom_property) end describe 'GET index' do before(:each) do FactoryBot.creat...
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_group_has_checkout_types_controller_spec.rb
spec/controllers/user_group_has_checkout_types_controller_spec.rb
require 'rails_helper' describe UserGroupHasCheckoutTypesController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all user_group_has_checkout_types as @user_group_has_checkout_types' do get :index assigns(:us...
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_import_files_controller_spec.rb
spec/controllers/event_import_files_controller_spec.rb
require 'rails_helper' describe EventImportFilesController do fixtures :all describe "GET index" do describe "When logged in as Administrator" do login_fixture_admin it "assigns all event_import_files as @event_import_files" do get :index assigns(:event_import_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/countries_controller_spec.rb
spec/controllers/countries_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe CountriesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:country) end describe 'GET index' do before(:each) do FactoryBot.create(:country) end describe 'When logged in a...
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/manifestation_checkout_stats_controller_spec.rb
spec/controllers/manifestation_checkout_stats_controller_spec.rb
require 'rails_helper' describe ManifestationCheckoutStatsController do fixtures :all describe 'GET index' do before(:each) do FactoryBot.create(:manifestation_checkout_stat) end describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all manifestation_checkou...
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/budget_types_controller_spec.rb
spec/controllers/budget_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/manifestations_controller_spec.rb
spec/controllers/manifestations_controller_spec.rb
require 'rails_helper' describe ManifestationsController do fixtures :all def valid_attributes FactoryBot.attributes_for(:manifestation) end describe 'GET index', solr: true do before do Manifestation.reindex end describe 'When logged in as Administrator' do login_fixture_admin ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
true
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/controllers/licenses_controller_spec.rb
spec/controllers/licenses_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/creates_controller_spec.rb
spec/controllers/creates_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe CreatesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:create) end describe 'GET index' do before(:each) do FactoryBot.create(:create) end describe 'When logged in as Ad...
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/agent_import_files_controller_spec.rb
spec/controllers/agent_import_files_controller_spec.rb
require 'rails_helper' describe AgentImportFilesController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all agent_import_files as @agent_import_files' do get :index expect(assigns(:agent_import_files)).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/controllers/accepts_controller_spec.rb
spec/controllers/accepts_controller_spec.rb
require 'rails_helper' describe AcceptsController do fixtures :all def mock_user(stubs = {}) (@mock_user ||= mock_model(Accept).as_null_object).tap do |user| user.stub(stubs) unless stubs.empty? end end describe 'GET index' do describe 'When logged in as Administrator' do login_fixtur...
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/produces_controller_spec.rb
spec/controllers/produces_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe ProducesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:produce) end describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns ...
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/produce_types_controller_spec.rb
spec/controllers/produce_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_import_results_controller_spec.rb
spec/controllers/user_import_results_controller_spec.rb
require 'rails_helper' describe UserImportResultsController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all user_import_results as @user_import_results' do get :index assigns(:user_import_results).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/controllers/agent_merges_controller_spec.rb
spec/controllers/agent_merges_controller_spec.rb
require 'rails_helper' describe AgentMergesController do fixtures :all describe 'GET index' do before(:each) do FactoryBot.create(:agent_merge) end describe 'When logged in as Administrator' do login_admin it 'assigns all agent_merges as @agent_merges' 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/request_types_controller_spec.rb
spec/controllers/request_types_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe RequestTypesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:request_status_type) end describe 'GET index' do before(:each) do FactoryBot.create(:request_type) end descri...
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/agent_merge_lists_controller_spec.rb
spec/controllers/agent_merge_lists_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe AgentMergeListsController do fixtures :all disconnect_sunspot describe 'GET index' do describe 'When logged in as Administrator' do login_admin it 'assigns all agent_merge_lists as @agent_merge_lists' 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/agent_types_controller_spec.rb
spec/controllers/agent_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/library_groups_controller_spec.rb
spec/controllers/library_groups_controller_spec.rb
require 'rails_helper' describe LibraryGroupsController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all library_groups as @library_groups' do get :index assigns(:library_groups).should_not be_empty en...
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/events_controller_spec.rb
spec/controllers/events_controller_spec.rb
require 'rails_helper' describe EventsController do fixtures :all describe "GET index", solr: true do before do Event.reindex end before(:each) do FactoryBot.create(:event) end describe "When logged in as Administrator" do login_fixture_admin it "assigns all events a...
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/ndl_books_controller_spec.rb
spec/controllers/ndl_books_controller_spec.rb
require 'rails_helper' describe NdlBooksController do fixtures :all it "should be a kind of enju_ndl" do assert_kind_of Module, EnjuNdl end describe "GET index" do login_fixture_admin it "should get index", vcr: true do get :index, params: { query: 'library' } assigns(:books).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/controllers/bookmark_stats_controller_spec.rb
spec/controllers/bookmark_stats_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe BookmarkStatsController do fixtures :all disconnect_sunspot describe "GET index" do before(:each) do FactoryBot.create(:bookmark_stat) end describe "When logged in as Administrator" do login_fixture_admin it "ass...
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/identifier_types_controller_spec.rb
spec/controllers/identifier_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/cinii_books_controller_spec.rb
spec/controllers/cinii_books_controller_spec.rb
require 'rails_helper' describe CiniiBooksController do fixtures :all it "should be a kind of enju_nii" do assert_kind_of Module, EnjuNii end describe "GET index" do login_fixture_admin it "should get index", vcr: true do get :index, params: { query: 'library' } assigns(:books).shoul...
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_heading_types_controller_spec.rb
spec/controllers/subject_heading_types_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe SubjectHeadingTypesController do fixtures :all disconnect_sunspot def valid_attributes FactoryBot.attributes_for(:subject_heading_type) end describe 'GET index' do before(:each) do FactoryBot.create(:subject_heading_type) ...
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/roles_controller_spec.rb
spec/controllers/roles_controller_spec.rb
require 'spec_helper' describe RolesController do fixtures :all describe "GET index" do describe "When logged in as Administrator" do login_fixture_admin it "assigns all roles as @roles" do get :index expect(assigns(:roles)).to eq(Role.order(:position)) end end desc...
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/loc_search_controller_spec.rb
spec/controllers/loc_search_controller_spec.rb
require 'rails_helper' describe LocSearchController do fixtures :all it "should be a kind of enju_loc" do assert_kind_of Module, EnjuLoc end describe "GET index" do login_fixture_librarian it "should get index", vcr: true do get :index, params: { query: 'library' } expect(assigns(:bo...
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/inventory_files_controller_spec.rb
spec/controllers/inventory_files_controller_spec.rb
require 'rails_helper' describe InventoryFilesController do fixtures :all describe "GET index" do describe "When logged in as Administrator" do login_fixture_admin it "assigns all inventory_files as @inventory_files" do get :index expect(assigns(:inventory_files)).to eq(InventoryF...
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/manifestation_relationships_controller_spec.rb
spec/controllers/manifestation_relationships_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe ManifestationRelationshipsController do fixtures :all disconnect_sunspot def valid_attributes @attrs = FactoryBot.attributes_for(:manifestation_relationship) end describe 'GET index' do before(:each) do FactoryBot.create(:man...
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/resource_import_results_controller_spec.rb
spec/controllers/resource_import_results_controller_spec.rb
require 'rails_helper' describe ResourceImportResultsController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all resource_import_results as @resource_import_results' do get :index expect(assigns(:resource_im...
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/realizes_controller_spec.rb
spec/controllers/realizes_controller_spec.rb
require 'rails_helper' require 'sunspot/rails/spec_helper' describe RealizesController do fixtures :all disconnect_sunspot describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all realizes as @realizes' do get :index expect(assign...
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/resource_export_files_controller_spec.rb
spec/controllers/resource_export_files_controller_spec.rb
require 'rails_helper' describe ResourceExportFilesController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all resource_export_files as @resource_export_files' do get :index expect(assigns(:resource_export_f...
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/resource_import_files_controller_spec.rb
spec/controllers/resource_import_files_controller_spec.rb
require 'rails_helper' describe ResourceImportFilesController do fixtures :all describe 'GET index' do describe 'When logged in as Administrator' do login_fixture_admin it 'assigns all resource_import_files as @resource_import_files' do get :index expect(assigns(:resource_import_f...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false