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/models/realize_spec.rb
spec/models/realize_spec.rb
require 'rails_helper' describe Realize do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: realizes # # id :bigint not null, primary key # position :integer # created_at :datetime not null # updated_at :datetim...
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/use_resetriction_spec.rb
spec/models/use_resetriction_spec.rb
require 'rails_helper' describe UseRestriction 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/agent_import_result_spec.rb
spec/models/agent_import_result_spec.rb
require 'rails_helper' describe AgentImportResult do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: agent_import_results # # id :bigint not null, primary key # agent_import_file_id :bigint # agent_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/series_statement_merge_spec.rb
spec/models/series_statement_merge_spec.rb
require 'rails_helper' describe SeriesStatementMerge do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: series_statement_merges # # id :bigint not null, primary key # created_at :datetime not nul...
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_user_spec.rb
spec/models/checkout_stat_has_user_spec.rb
require 'rails_helper' describe CheckoutStatHasUser do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: checkout_stat_has_users # # id :bigint not null, primary key # checkouts_count :integer default(0), not null # c...
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_type_spec.rb
spec/models/request_type_spec.rb
require 'rails_helper' describe RequestType do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: request_types # # 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/event_import_file_spec.rb
spec/models/event_import_file_spec.rb
require 'rails_helper' describe EventImportFile do fixtures :all #pending "add some examples to (or delete) #{__FILE__}" describe "When it is written in utf-8" do before(:each) do @file = EventImportFile.create!( default_library_id: 3, default_event_category: EventCategory.find(3), ...
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_property_spec.rb
spec/models/manifestation_custom_property_spec.rb
require 'rails_helper' RSpec.describe ManifestationCustomProperty, type: :model do pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: manifestation_custom_properties # # 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_custom_property_spec.rb
spec/models/item_custom_property_spec.rb
require 'rails_helper' RSpec.describe ItemCustomProperty, type: :model do pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: item_custom_properties # # id :bigint not null, primary key # display_name(表示名) :text not null # nam...
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_file_spec.rb
spec/models/inventory_file_spec.rb
require 'rails_helper' describe InventoryFile do fixtures :users before(:each) do @file = InventoryFile.create(user: users(:admin), shelf: Shelf.find_by(name: 'first_shelf')) @file.attachment.attach(io: File.new("#{Rails.root.to_s}/spec/fixtures/files/inventory_file_sample.tsv"), filename: 'attachment.txt...
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/medium_of_performance_spec.rb
spec/models/medium_of_performance_spec.rb
require 'rails_helper' describe MediumOfPerformance do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: medium_of_performances # # 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/identifier_spec.rb
spec/models/identifier_spec.rb
require 'rails_helper' describe Identifier do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: identifiers # # id :bigint not null, primary key # body :string not null # position :integer # created_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/models/language_spec.rb
spec/models/language_spec.rb
require 'rails_helper' describe Language do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: languages # # id :bigint not null, primary key # display_name :text # iso_639_1 :string # iso_639_2 :string # iso_639_3 :string # name ...
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_user_spec.rb
spec/models/reserve_stat_has_user_spec.rb
require 'rails_helper' describe ReserveStatHasUser do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: reserve_stat_has_users # # id :bigint not null, primary key # reserves_count :integer # 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/lccn_record_spec.rb
spec/models/lccn_record_spec.rb
require 'rails_helper' RSpec.describe LccnRecord, type: :model do pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: lccn_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/content_type_spec.rb
spec/models/content_type_spec.rb
require 'rails_helper' describe ContentType do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: content_types # # id :bigint not null, primary key # display_name :text # name :string not null # note :text # posit...
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_export_file_spec.rb
spec/models/resource_export_file_spec.rb
require 'rails_helper' describe ResourceExportFile do fixtures :all it "should export ncid" do manifestation = FactoryBot.create(:manifestation) type = IdentifierType.find_or_create_by(name: "ncid") identifier = FactoryBot.create(:identifier, identifier_type: type, body: "a11223344") manifestat...
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_import_result_spec.rb
spec/models/user_import_result_spec.rb
require 'rails_helper' describe UserImportResult do #pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: user_import_results # # id :bigint not null, primary key # body :text # error_message :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/user_import_file_spec.rb
spec/models/user_import_file_spec.rb
require 'rails_helper' describe UserImportFile do fixtures :all describe "when its mode is 'create'" do before(:each) do @file = UserImportFile.new attachment: fixture_file_upload("/user_import_file_sample.tsv") @file.default_user_group = UserGroup.find(2) @file.default_library = Library.fin...
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_spec.rb
spec/models/user_spec.rb
require 'rails_helper' describe User do #pending "add some examples to (or delete) #{__FILE__}" fixtures :all it 'should create an user' do FactoryBot.create(:user) end it 'should destroy an user' do user = FactoryBot.create(:user) user.destroy.should be_truthy end it 'should respond to ha...
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/resourcesync_spec.rb
spec/models/resourcesync_spec.rb
require 'rails_helper' describe Resourcesync do fixtures :all it "generate_capabilitylist" do expect(Resourcesync.new.generate_capabilitylist).to be_truthy end it "generate_resourcelist_index" do expect(Resourcesync.new.generate_resourcelist_index(Manifestation.all)).to be_truthy end it "generat...
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_type_spec.rb
spec/models/checkout_type_spec.rb
require 'rails_helper' describe CheckoutType do # pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: checkout_types # # id :bigint not null, primary key # display_name :text # name :string not null # note :text # pos...
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_spec.rb
spec/models/periodical_spec.rb
require 'rails_helper' RSpec.describe Periodical, type: :model do pending "add some examples to (or delete) #{__FILE__}" end # == Schema Information # # Table name: periodicals # # id :bigint not null, primary key # original_title :text 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/user_group_has_checkout_type_spec.rb
spec/models/user_group_has_checkout_type_spec.rb
require 'rails_helper' describe UserGroupHasCheckoutType do fixtures :all it "should respond to update_current_checkout_count" do UserGroupHasCheckoutType.update_current_checkout_count.should be_truthy end end # == Schema Information # # Table name: user_group_has_checkout_types # # 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/checkin_spec.rb
spec/models/checkin_spec.rb
require 'rails_helper' describe Checkin do fixtures :all before(:each) do @basket = Basket.new @basket.user = users(:librarian1) @basket.save end it "should save checkout history if save_checkout_history is true" do user = users(:user1) checkouts_count = user.checkouts.count checkin =...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/user_export_files/new.html.erb_spec.rb
spec/views/user_export_files/new.html.erb_spec.rb
require 'rails_helper' describe "user_export_files/new" do before(:each) do assign(:user_export_file, UserExportFile.new) view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders new user form" do render # Run the generator again with the --webrat flag if you wan...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/my_accounts/show.html.erb_spec.rb
spec/views/my_accounts/show.html.erb_spec.rb
require 'rails_helper' describe "my_accounts/show" do fixtures :all before(:each) do @profile = assign(:profile, profiles(:profile_admin)) end describe "when logged in as Librarian" do before(:each) do @profile = assign(:profile, profiles(:profile_librarian2)) user = users(:librarian1) ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/checkouts/show.html.erb_spec.rb
spec/views/checkouts/show.html.erb_spec.rb
require 'rails_helper' describe "checkouts/show" do fixtures :checkouts, :users, :user_has_roles, :roles, :profiles before(:each) do @checkout = assign(:checkout, checkouts(:checkout_00001)) assign(:library_group, LibraryGroup.site_config) view.stub(:current_user).and_return(User.find_by(username: '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/views/checkouts/edit.html.erb_spec.rb
spec/views/checkouts/edit.html.erb_spec.rb
require 'rails_helper' describe "checkouts/edit" do fixtures :checkouts, :users, :user_has_roles, :roles before(:each) do @checkout = assign(:checkout, checkouts(:checkout_00001)) assign(:new_due_date, 1.day.from_now) assign(:library_group, LibraryGroup.site_config) view.stub(:current_user).and_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/views/checkouts/index.html.erb_spec.rb
spec/views/checkouts/index.html.erb_spec.rb
require 'rails_helper' describe "checkouts/index" do fixtures :all before(:each) do assign(:checkouts, Checkout.page(1)) assign(:checkouts_facet, []) view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders a list of checkouts" do allow(view).to receive(:policy...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/library_groups/show.html.erb_spec.rb
spec/views/library_groups/show.html.erb_spec.rb
require 'rails_helper' describe "library_groups/show" do before(:each) do @library_group = LibraryGroup.site_config view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders attributes in <p>" do allow(view).to receive(:policy).and_return double(update?: true) rend...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/library_groups/edit.html.erb_spec.rb
spec/views/library_groups/edit.html.erb_spec.rb
require 'rails_helper' describe "library_groups/edit" do fixtures :all before(:each) do @library_group = LibraryGroup.site_config @available_languages = Language.where(iso_639_1: I18n.available_locales.map {|l| l.to_s}) @countries = Country.all end it "renders selector for multilpe book jacket so...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/periodicals/show.html.erb_spec.rb
spec/views/periodicals/show.html.erb_spec.rb
require 'rails_helper' RSpec.describe "periodicals/show", type: :view do fixtures :all before(:each) do assign(:periodical, periodicals(:periodical_00001)) end it "renders attributes in <p>" do render end 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/views/periodicals/new.html.erb_spec.rb
spec/views/periodicals/new.html.erb_spec.rb
require 'rails_helper' RSpec.describe "periodicals/new", type: :view do before(:each) do assign(:periodical, Periodical.new()) end it "renders new periodical form" do render assert_select "form[action=?][method=?]", periodicals_path, "post" do end end 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/views/periodicals/edit.html.erb_spec.rb
spec/views/periodicals/edit.html.erb_spec.rb
require 'rails_helper' RSpec.describe "periodicals/edit", type: :view do fixtures :all let(:periodical) { periodicals(:periodical_00001) } before(:each) do assign(:periodical, periodical) end it "renders the edit periodical form" do render assert_select "form[action=?][method=?]", perio...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/periodicals/index.html.erb_spec.rb
spec/views/periodicals/index.html.erb_spec.rb
require 'rails_helper' RSpec.describe "periodicals/index", type: :view do fixtures :all before(:each) do assign(:periodicals, Periodical.page(1) ) end it "renders a list of periodicals" do allow(view).to receive(:policy).and_return double(create?: true, update?: true, destroy?: true) r...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/checked_items/new.html.erb_spec.rb
spec/views/checked_items/new.html.erb_spec.rb
require 'rails_helper' describe "checked_items/new" do fixtures :all it "renders new checkout form" do profile = FactoryBot.create(:profile, user_number: "foo") user = FactoryBot.create(:user, profile: profile, username: "bar") basket = FactoryBot.create(:basket, user: user) assign(:basket, basket...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/reserves/index.html.erb_spec.rb
spec/views/reserves/index.html.erb_spec.rb
require 'rails_helper' describe "reserves/index" do fixtures :users, :roles, :user_has_roles, :reserves before(:each) do view.extend EnjuLeaf::ApplicationHelper assign(:reserves, Reserve.page(1)) view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders a list of r...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/manifestations/show.html.erb_spec.rb
spec/views/manifestations/show.html.erb_spec.rb
require 'rails_helper' describe "manifestations/show" do fixtures :all before(:each) do assign(:manifestation, FactoryBot.create(:manifestation)) assign(:library_group, library_groups(:one)) allow(view).to receive(:policy).and_return double(create?: false, udpate?: false, destroy?: false) end 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/views/manifestations/show.text.ruby_spec.rb
spec/views/manifestations/show.text.ruby_spec.rb
require 'rails_helper' describe "manifestations/show.text.ruby" do fixtures :all before(:each) do assign(:manifestation, manifestations(:manifestation_00001)) end it "renders show" do render # Run the generator again with the --webrat flag if you want to use webrat matchers expect(rendered).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/views/manifestations/index.text.ruby_spec.rb
spec/views/manifestations/index.text.ruby_spec.rb
require "rails_helper.rb" describe "manifestations/index.text.ruby" do before(:each) do manifestation = FactoryBot.create(:manifestation) manifestation.items << FactoryBot.create(:item, bookstore_id: 1, budget_type_id: 1, price: 100) @manifestations = assign(:manifestations, [ manifestation ] ) 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/views/manifestations/index.rdf.builder_spec.rb
spec/views/manifestations/index.rdf.builder_spec.rb
require "rails_helper.rb" describe "manifestations/index.rdf.builder" do before(:each) do manifestation = FactoryBot.create(:manifestation) @manifestations = assign(:manifestations, [ manifestation ] ) @library_group = LibraryGroup.first end it "should export RDF format" do params[:format] = "rd...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/manifestations/show.ttl.ruby_spec.rb
spec/views/manifestations/show.ttl.ruby_spec.rb
require "rails_helper.rb" describe "manifestations/show.ttl.ruby" do before(:each) do @manifestation = assign(:manifestation, FactoryBot.create(:manifestation)) @library_group = LibraryGroup.first end it "should export TTL format" do render end 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/views/manifestations/show.json.jbuilder_spec.rb
spec/views/manifestations/show.json.jbuilder_spec.rb
require 'rails_helper' describe "manifestations/show.json.jbuilder" do fixtures :all before(:each) do assign(:manifestation, FactoryBot.create(:manifestation)) allow(view).to receive(:policy).and_return double(show?: true, create?: false, udpate?: false, destroy?: false) end it "renders a template" 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/views/manifestations/index.ttl.ruby_spec.rb
spec/views/manifestations/index.ttl.ruby_spec.rb
require "rails_helper.rb" describe "manifestations/index.ttl.ruby" do before(:each) do manifestation = FactoryBot.create(:manifestation) @manifestations = assign(:manifestations, [ manifestation ]) @library_group = LibraryGroup.first end it "should export TTL format" do render end 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/views/manifestations/index.html.erb_spec.rb
spec/views/manifestations/index.html.erb_spec.rb
require "rails_helper.rb" describe "manifestations/index" do before(:each) do @manifestations = assign(:manifestations, Kaminari.paginate_array( [ FactoryBot.create(:manifestation), ], total_count: 1).page(1) ) @index_agent = {} @count = { query_result: 1 } @reservable_facet =...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/loc_search/index.html.erb_spec.rb
spec/views/loc_search/index.html.erb_spec.rb
require "spec_helper.rb" describe "loc_search/index" do describe "loc search menu" do it "should reflect query params for views", vcr: true do params[:query] = "test" assign(:query, "test") books = LocSearch.search(params[:query]) assign(:books, Kaminari.paginate_array(books[:items], tota...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/accepts/show.html.erb_spec.rb
spec/views/accepts/show.html.erb_spec.rb
require 'rails_helper' describe "accepts/show" do fixtures :all before(:each) do @accept = assign(:accept, accepts(:one)) end it "renders attributes in <p>" do render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.should match(/1/) end 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/views/accepts/new.html.erb_spec.rb
spec/views/accepts/new.html.erb_spec.rb
require 'rails_helper' describe "accepts/new" do fixtures :all before(:each) do assign(:accept, Accept.new( item_id: 1 )) assign(:basket, FactoryBot.create(:basket)) assign(:accepts, Accept.page(1)) end it "renders new accept form" do render # Run the generator again with the -...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/accepts/edit.html.erb_spec.rb
spec/views/accepts/edit.html.erb_spec.rb
require 'rails_helper' describe "accepts/edit" do before(:each) do @accept = assign(:accept, FactoryBot.create(:accept)) end it "renders the edit accept form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", action: accepts_path...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/accepts/index.html.erb_spec.rb
spec/views/accepts/index.html.erb_spec.rb
require 'rails_helper' describe "accepts/index" do fixtures :all before(:each) do assign(:accepts, Accept.page(1)) basket = FactoryBot.create(:basket) assign(:basket, basket) assign(:accept, basket.accepts.new) end it "renders a list of accepts" do allow(view).to receive(:policy).and_retu...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/page/opensearch.xml.builder_spec.rb
spec/views/page/opensearch.xml.builder_spec.rb
require 'rails_helper' describe "page/opensearch" do fixtures :all before(:each) do assign(:library_group, LibraryGroup.site_config) view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders the XML template" do render # Run the generator again with the --webrat...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/page/import.html.erb_spec.rb
spec/views/page/import.html.erb_spec.rb
require 'rails_helper' describe "page/import" do fixtures :all before(:each) do view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders attributes in <p>" do render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.sh...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/page/export.html.erb_spec.rb
spec/views/page/export.html.erb_spec.rb
require 'rails_helper' describe "page/export" do fixtures :all before(:each) do view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders attributes in <p>" do render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.sh...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/page/about.html.erb_spec.rb
spec/views/page/about.html.erb_spec.rb
require 'rails_helper' describe "page/about" do fixtures :all before(:each) do view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders attributes in <p>" do render # Run the generator again with the --webrat flag if you want to use webrat matchers rendered.sho...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/page/statistics.html.erb_spec.rb
spec/views/page/statistics.html.erb_spec.rb
require 'rails_helper' describe "page/statistics" do fixtures :all before(:each) do @profile = assign(:profile, profiles(:profile_admin)) view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders attributes in <p>" do render # Run the generator again with the --...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/page/configuration.html.erb_spec.rb
spec/views/page/configuration.html.erb_spec.rb
require 'rails_helper' describe "page/configuration" do fixtures :all before(:each) do view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders attributes in <p>" do render # Run the generator again with the --webrat flag if you want to use webrat matchers rend...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/page/advanced_search.html.erb_spec.rb
spec/views/page/advanced_search.html.erb_spec.rb
require 'rails_helper' describe "page/advanced_search" do fixtures :all context :login_with_admin do before(:each) do assign(:libraries, Library.all) view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders attributes in <p>" do render # Run the ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/page/index.html.erb_spec.rb
spec/views/page/index.html.erb_spec.rb
require 'rails_helper' describe "page/index" do fixtures :all before(:each) do view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) assign(:tags, Tag.all) end it "renders attributes in <p>" do render # Run the generator again with the --webrat flag if you want to use webra...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/withdraws/show.html.erb_spec.rb
spec/views/withdraws/show.html.erb_spec.rb
require 'rails_helper' RSpec.describe "withdraws/show", type: :view do before(:each) do @withdraw = assign(:withdraw, FactoryBot.create(:withdraw)) end it "renders attributes in <p>" do render end 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/views/withdraws/new.html.erb_spec.rb
spec/views/withdraws/new.html.erb_spec.rb
require 'rails_helper' RSpec.describe "withdraws/new", type: :view do fixtures :all before(:each) do assign(:withdraw, Withdraw.new( item_id: 1 )) assign(:basket, baskets(:basket_00001)) assign(:withdraws, Withdraw.page(1)) view.stub(:current_user).and_return(User.find_by(username: 'enju...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/withdraws/edit.html.erb_spec.rb
spec/views/withdraws/edit.html.erb_spec.rb
require 'rails_helper' RSpec.describe "withdraws/edit", type: :view do before(:each) do @withdraw = assign(:withdraw, FactoryBot.create(:withdraw)) end it "renders the edit withdraw form" do render assert_select "form[action=?][method=?]", withdraw_path(@withdraw), "post" do end end 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/views/withdraws/index.html.erb_spec.rb
spec/views/withdraws/index.html.erb_spec.rb
require 'rails_helper' RSpec.describe "withdraws/index", type: :view do fixtures :all before(:each) do FactoryBot.create(:withdraw) assign(:withdraws, Withdraw.page(1)) basket = FactoryBot.create(:basket) assign(:basket, basket) assign(:withdraw, basket.withdraws.new) view.stub(:current_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/views/libraries/show.html.erb_spec.rb
spec/views/libraries/show.html.erb_spec.rb
require 'rails_helper' describe "libraries/show" do fixtures :all before(:each) do @events = Kaminari::paginate_array([]).page(1) assign(:library, FactoryBot.create(:library, street: "\tStreet 1-2")) end it "renders a library detail" do allow(view).to receive(:policy).and_return double(create?: tr...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/budget_types/show.html.erb_spec.rb
spec/views/budget_types/show.html.erb_spec.rb
require 'rails_helper' describe "budget_types/show" do before(:each) do @budget_type = assign(:budget_type, BudgetType.create( name: "Name", display_name: "MyText", note: "MyText", position: 1 )) end it "renders attributes in <p>" do allow(view).to receive(:policy).and_return...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/budget_types/new.html.erb_spec.rb
spec/views/budget_types/new.html.erb_spec.rb
require 'rails_helper' describe "budget_types/new" do before(:each) do assign(:budget_type, BudgetType.new( name: "MyString", display_name: "MyText", note: "MyText", position: 1 )) end it "renders new budget_type form" do render # Run the generator again with the --webra...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/budget_types/edit.html.erb_spec.rb
spec/views/budget_types/edit.html.erb_spec.rb
require 'rails_helper' describe "budget_types/edit" do before(:each) do @budget_type = assign(:budget_type, FactoryBot.create(:budget_type)) end it "renders the edit budget_type form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "fo...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/budget_types/index.html.erb_spec.rb
spec/views/budget_types/index.html.erb_spec.rb
require 'rails_helper' describe "budget_types/index" do before(:each) do assign(:budget_types, BudgetType.all) end it "renders a list of budget_types" do allow(view).to receive(:policy).and_return double(create?: true, update?: true, destroy?: true) render # Run the generator again with the --we...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/user_import_results/index.html.erb_spec.rb
spec/views/user_import_results/index.html.erb_spec.rb
require 'rails_helper' describe "user_import_results/index" do fixtures :all before(:each) do assign(:user_import_results, UserImportResult.page(1)) view.stub(:current_user).and_return(User.find_by(username: 'enjuadmin')) end it "renders a list of user_import_results" do render expect(rendere...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/cinii_books/index.html.erb_spec.rb
spec/views/cinii_books/index.html.erb_spec.rb
require "spec_helper" describe "cinii_books/index" do describe "cinii books search menu" do it "should reflect query params for views", vcr: true do params[:query] = "test" assign(:query, "test") books = CiniiBook.search(params[:query]) assign(:books, Kaminari.paginate_array(books[: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/views/manifestation_custom_properties/show.html.erb_spec.rb
spec/views/manifestation_custom_properties/show.html.erb_spec.rb
require 'rails_helper' RSpec.describe "manifestation_custom_properties/show", type: :view do before(:each) do @manifestation_custom_property = assign(:manifestation_custom_property, ManifestationCustomProperty.create!( name: "name", note: "MyText" )) end it "renders attributes in <p>" 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/views/manifestation_custom_properties/new.html.erb_spec.rb
spec/views/manifestation_custom_properties/new.html.erb_spec.rb
require 'rails_helper' RSpec.describe "manifestation_custom_properties/new", type: :view do before(:each) do assign(:manifestation_custom_property, ManifestationCustomProperty.new( name: "my_string", note: "MyText" )) end it "renders new manifestation_custom_property form" do render ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/manifestation_custom_properties/edit.html.erb_spec.rb
spec/views/manifestation_custom_properties/edit.html.erb_spec.rb
require 'rails_helper' RSpec.describe "manifestation_custom_properties/edit", type: :view do before(:each) do @manifestation_custom_property = assign(:manifestation_custom_property, ManifestationCustomProperty.create!( name: "my_string", note: "MyText" )) end it "renders the edit manifestati...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/manifestation_custom_properties/index.html.erb_spec.rb
spec/views/manifestation_custom_properties/index.html.erb_spec.rb
require 'rails_helper' RSpec.describe "manifestation_custom_properties/index", type: :view do before(:each) do assign(:manifestation_custom_properties, [ ManifestationCustomProperty.create!( name: "name1", display_name: "カスタム項目1", note: "MyText" ), ManifestationCustomPro...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/item_custom_properties/show.html.erb_spec.rb
spec/views/item_custom_properties/show.html.erb_spec.rb
require 'rails_helper' RSpec.describe "item_custom_properties/show", type: :view do before(:each) do @item_custom_property = assign(:item_custom_property, ItemCustomProperty.create!( name: "name", note: "MyText" )) end it "renders attributes in <p>" do render expect(rendered).to matc...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/item_custom_properties/new.html.erb_spec.rb
spec/views/item_custom_properties/new.html.erb_spec.rb
require 'rails_helper' RSpec.describe "item_custom_properties/new", type: :view do before(:each) do assign(:item_custom_property, ItemCustomProperty.new( name: "my_string", note: "MyText" )) end it "renders new item_custom_property form" do render assert_select "form[action=?][metho...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/views/item_custom_properties/edit.html.erb_spec.rb
spec/views/item_custom_properties/edit.html.erb_spec.rb
require 'rails_helper' RSpec.describe "item_custom_properties/edit", type: :view do before(:each) do @item_custom_property = assign(:item_custom_property, ItemCustomProperty.create!( name: "my_string", note: "MyText" )) end it "renders the edit item_custom_property form" do render 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/views/item_custom_properties/index.html.erb_spec.rb
spec/views/item_custom_properties/index.html.erb_spec.rb
require 'rails_helper' RSpec.describe "item_custom_properties/index", type: :view do before(:each) do assign(:item_custom_properties, [ ItemCustomProperty.create!( name: "name1", display_name: "カスタム項目1", note: "MyText" ), ItemCustomProperty.create!( name: "name2"...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/mailers/resource_export_mailer_spec.rb
spec/mailers/resource_export_mailer_spec.rb
require "rails_helper" RSpec.describe ResourceExportMailer, type: :mailer do fixtures :all it "should send completed mail" do mailer = ResourceExportMailer.completed(resource_export_files(:resource_export_file_00001)) expect(mailer.body.to_s).to match(/^Enju Library\n/) end it "should send failed mai...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/mailers/user_export_mailer_spec.rb
spec/mailers/user_export_mailer_spec.rb
require "rails_helper" RSpec.describe UserExportMailer, type: :mailer do fixtures :all it "should send completed mail" do mailer = UserExportMailer.completed(user_export_files(:user_export_file_00001)) expect(mailer.body.to_s).to match(/^Enju Library\n/) end it "should send failed mail" do mailer...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/mailers/notifier_spec.rb
spec/mailers/notifier_spec.rb
require "rails_helper" RSpec.describe Notifier, type: :mailer do fixtures :all it "should send message_notification mail" do mailer = Notifier.message_notification(messages(:user1_to_user2_1).id) expect(mailer.body.to_s).to match(/^Enju Library\n/) end it "should send manifestation_info mail" 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/mailers/reserve_mailer_spec.rb
spec/mailers/reserve_mailer_spec.rb
require "rails_helper" RSpec.describe ReserveMailer, type: :mailer do fixtures :all it "should send accepted mail" do mailer = ReserveMailer.accepted(reserves(:reserve_00001)) expect(mailer.body.to_s).to match(/^Enju Library\n/) end it "should send expired mail" do mailer = ReserveMailer.expired(...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/mailers/event_export_mailer_spec.rb
spec/mailers/event_export_mailer_spec.rb
require "rails_helper" RSpec.describe EventExportMailer, type: :mailer do fixtures :all it "should send completed mail" do mailer = EventExportMailer.completed(event_export_files(:event_export_file_00001)) expect(mailer.body.to_s).to match(/^Enju Library\n/) end it "should send failed mail" do ma...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/mailers/checkout_mailer_spec.rb
spec/mailers/checkout_mailer_spec.rb
require "rails_helper" RSpec.describe CheckoutMailer, type: :mailer do fixtures :all it "should send due_date mail" do mailer = CheckoutMailer.due_date(checkouts(:checkout_00001)) expect(mailer.body.to_s).to match(/^Enju Library\n/) end it "should send overdue mail" do mailer = CheckoutMailer.ove...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/spec/mailers/previews/user_export_mailer_preview.rb
spec/mailers/previews/user_export_mailer_preview.rb
# Preview all emails at http://localhost:3000/rails/mailers/user_export_mailer class UserExportMailerPreview < ActionMailer::Preview 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/mailers/previews/event_export_mailer_preview.rb
spec/mailers/previews/event_export_mailer_preview.rb
# Preview all emails at http://localhost:3000/rails/mailers/event_export_mailer class EventExportMailerPreview < ActionMailer::Preview 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/mailers/previews/reserve_mailer_preview.rb
spec/mailers/previews/reserve_mailer_preview.rb
# Preview all emails at http://localhost:3000/rails/mailers/reserve_mailer class ReserveMailerPreview < ActionMailer::Preview 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/mailers/previews/resource_export_mailer_preview.rb
spec/mailers/previews/resource_export_mailer_preview.rb
# Preview all emails at http://localhost:3000/rails/mailers/resource_export_mailer class ResourceExportMailerPreview < ActionMailer::Preview end
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/openurl.rb
lib/openurl.rb
#------------------------------------------- # OpenurlQuerySyntaxErrorクラス # 文法上の誤りをエラーとする #------------------------------------------- class OpenurlQuerySyntaxError < RuntimeError; end #------------------------------------------- # Openurlクラス #------------------------------------------- class Openurl # 一致条件ごとの分類 M...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/identifier_type.rb
lib/tasks/identifier_type.rb
def update_identifier_type identifier_types = YAML.safe_load(open("db/fixtures/enju_biblio/identifier_types.yml").read) identifier_types.each do |line| l = line[1].select! { |k, v| %w(name display_name note).include?(k) } identifier_type = IdentifierType.where(name: l["name"]).first if identifier_type ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/content_type.rb
lib/tasks/content_type.rb
def update_content_type content_types = YAML.safe_load(open("db/fixtures/enju_biblio/content_types.yml").read) content_types.each do |line| l = line[1].select! { |k, v| %w(name display_name note).include?(k) } case l["name"] when "text" when "performed_music" content_type = ContentType.where(...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/item.rb
lib/tasks/item.rb
def update_item if defined?(Exemplify) Exemplify.find_each do |exemplify| if exemplify.item exemplify.item.update_column(:manifestation_id, exemplify.manifestation_id) unless exemplify.item.manifestation_id end end end end
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/circulation_status.rb
lib/tasks/circulation_status.rb
def update_circulation_status YAML.safe_load(open("db/fixtures/enju_circulation/circulation_statuses.yml").read).each do |line| l = line[1].select! { |k, v| %w(name display_name).include?(k) } CirculationStatus.where(name: l["name"]).first.try(:update_attributes!, l) end end
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/checkout.rb
lib/tasks/checkout.rb
def update_checkout Checkout.find_each do |checkout| checkout.update_column(:shelf_id, checkout.item.try(:shelf_id)) if checkout.shelf_id.nil? checkout.update_column(:library_id, checkout.librarian.try(:profile).try(:library_id)) if checkout.library_id.nil? end end
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/subject_type.rb
lib/tasks/subject_type.rb
def update_subject_type concept = SubjectType.where(name: "Concept").first concept&.update_column(:name, "concept") event = SubjectType.where(name: "Event").first event&.update_column(:name, "event") object = SubjectType.where(name: "Object").first object&.update_column(:name, "object") place = SubjectTyp...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/use_restriction.rb
lib/tasks/use_restriction.rb
def update_use_restriction YAML.safe_load(open("db/fixtures/enju_circulation/use_restrictions.yml").read).each do |line| l = line[1].select! { |k, v| %w(name display_name).include?(k) } UseRestriction.where(name: l["name"]).first.try(:update_attributes!, l) end end
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/subject_heading_type.rb
lib/tasks/subject_heading_type.rb
def update_subject_heading_type unknown = SubjectHeadingType.where(name: "unknown").first unless unknown SubjectHeadingType.create!(name: "unknown") end end
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/color.rb
lib/tasks/color.rb
def update_color colors = YAML.safe_load(open("db/fixtures/enju_library/colors.yml").read) library_group = LibraryGroup.site_config colors.each do |line| l = line[1].select! { |k, v| %w(property code).include?(k) } color = Color.where(property: l["property"]).first unless color color = Color.cre...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/carrier_type.rb
lib/tasks/carrier_type.rb
def update_carrier_type CarrierType.find_each do |carrier_type| case carrier_type.name when "volume" carrier_type = CarrierType.find_by(name: "volume") if carrier_type unless carrier_type.attachment.attached? carrier_type.attachment.attach(io: File.open("#{Rails.root}/app/assets/...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false
next-l/enju_leaf
https://github.com/next-l/enju_leaf/blob/cd3cff6dcc8e67909e1cd0a12c38700b45af6a42/lib/tasks/attachment.rb
lib/tasks/attachment.rb
def migrate_attachment option = { path: ":rails_root/private/system/:class/:attachment/:id_partition/:style/:filename" } AgentImportFile.where.not(agent_import_file_name: nil).find_each do |file| file.attachment.attach( io: File.open(Paperclip::Attachment.new( :agent_import, file, ...
ruby
MIT
cd3cff6dcc8e67909e1cd0a12c38700b45af6a42
2026-01-04T17:52:15.550406Z
false