You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/04/05 00:34:46 UTC
[whimsy] branch master updated: remove test as it requires mocking
up committee-info.txt
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new a6d300b remove test as it requires mocking up committee-info.txt
a6d300b is described below
commit a6d300b07da27ada2329e5c6abd08a975bdc144b
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Wed Apr 4 20:34:15 2018 -0400
remove test as it requires mocking up committee-info.txt
---
lib/whimsy/asf/committee.rb | 3 ++-
www/board/agenda/spec/actions_spec.rb | 16 +---------------
2 files changed, 3 insertions(+), 16 deletions(-)
diff --git a/lib/whimsy/asf/committee.rb b/lib/whimsy/asf/committee.rb
index 5c8afa1..523bb37 100644
--- a/lib/whimsy/asf/committee.rb
+++ b/lib/whimsy/asf/committee.rb
@@ -100,7 +100,8 @@ module ASF
parse_committee_info contents
else
- board = ASF::SVN['private/committers/board']
+ board = ASF::SVN.find('private/committers/board')
+ return unless board
file = "#{board}/committee-info.txt"
return unless File.exist? file
diff --git a/www/board/agenda/spec/actions_spec.rb b/www/board/agenda/spec/actions_spec.rb
index bb6d294..a1c43ff 100644
--- a/www/board/agenda/spec/actions_spec.rb
+++ b/www/board/agenda/spec/actions_spec.rb
@@ -17,7 +17,7 @@ feature 'server actions' do
#
# Index - split in two so that cleanup occurs after each step
#
- describe 'index0' do
+ describe 'index' do
it "should post new special orders" do
@agenda = 'board_agenda_2015_02_18.txt'
@attach = '7?'
@@ -32,20 +32,6 @@ feature 'server actions' do
to eq('WHEREAS, RESOLVED, and other official words')
end
end
- describe 'index1' do
- it "should post out of cycle reports" do
- @agenda = 'board_agenda_2015_02_18.txt'
- @attach = '+Whimsy'
- @message = 'Post Out of Cycle Whimsy Project'
- @report = 'all is well'
-
- eval(File.read('views/actions/post.json.rb'))
-
- resolution = @agenda.find {|item| item[:attach] == 'CG'}
- expect(resolution['title']).to eq('Whimsy')
- expect(resolution['report']).to eq('all is well')
- end
- end
#
# Roll Call
--
To stop receiving notification emails like this one, please contact
rubys@apache.org.