-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |