Skip to content

Commit

Permalink
fix frab#512
Browse files Browse the repository at this point in the history
this is partial: It fixes the conferene settings tabs and the "Submit"
button; but the main tabs (top nav menu) are still not working. I'm
pretty sure there should be a better solution.
  • Loading branch information
elad-eyal committed Nov 23, 2019
1 parent 3b1db2b commit 3ad309e
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
GIT
remote: https://github.com/Chris911/imgurr.git
revision: 38d3a525f8df990a0b50e5830ab72243aeadd291
branch: fix/rescue-failed-copy
specs:
imgurr (1.0.0)
json

GIT
remote: https://github.com/frab/localized_language_select.git
revision: 85df6b97789de6e29c630808b630e56a1b76f80c
Expand Down Expand Up @@ -181,6 +189,7 @@ GEM
thor (>= 0.14, < 2.0)
jquery-ui-rails (6.0.1)
railties (>= 3.2.16)
json (2.2.0)
jwt (2.2.1)
launchy (2.4.3)
addressable (~> 2.3)
Expand Down Expand Up @@ -431,6 +440,7 @@ DEPENDENCIES
haml
http_accept_language
i18n-tasks
imgurr!
jbuilder
jquery-migrate-rails
jquery-rails
Expand Down Expand Up @@ -469,6 +479,7 @@ DEPENDENCIES
sqlite3
sucker_punch
transitions
tzinfo-data
uglifier
will_paginate
yard
Expand Down
9 changes: 9 additions & 0 deletions runtest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
RAILS_ENV=test rails test test/features/filtering_event_list.rb test/features/editing_event_review_test.rb test/integration/view_event_test.rb test/features/bulk_edit_test.rb

if [ $? -eq 0 ]; then
echo ' 👍👍 👍👍 👍👍'
git reset Gemfile.lock
git checkout -- Gemfile.lock
else
exit $?
fi
8 changes: 8 additions & 0 deletions test/integration/event_list_sorting.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
all the tabs:

$("ul.tabs>li>a").text()


all clickable coloumn headers

$("th>a").text()
34 changes: 34 additions & 0 deletions test/tasks/migration_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
require 'test_helper'
require 'rake'

class RakeTaskExportAttachmentsTest < ActiveSupport::TestCase

describe 'frab:conference_export_attachments' do

def setup
# Create a conference with an attachment
@conference = create :three_day_conference_with_events
@conference.update_attributes(attachment_title_is_freeform: false)

@event=@conference.events.first

upload = Rack::Test::UploadedFile.new(Rails.root.join('test', 'fixtures', 'textfile.txt'), 'text/plain')
@event.update_attributes( event_attachments_attributes: { 'xx' => { 'title' => 'proposal', 'attachment' => upload } })

# Run frab:conference_export_attachments
Frab::Application.load_tasks if Rake::Task.tasks.empty?
ENV['CONFERENCE']=@conference.acronym
Rake::Task["frab:conference_export_attachments"].invoke

end

def teardown
@conference.destroy
end

it "should export attachments" do
assert File.file?("tmp/attachments/#{@conference.acronym}/trackless_proposal.tgz")
end

end
end

0 comments on commit 3ad309e

Please sign in to comment.