linked into views
This commit is contained in:
40
test/fixtures/answers.yml
vendored
40
test/fixtures/answers.yml
vendored
@ -599,8 +599,8 @@ henry10:
|
||||
created_at: <%= DateTime.now() - 36.hours - 40.minutes %>
|
||||
updated_at: <%= DateTime.now() - 36.hours - 20.minutes %>
|
||||
|
||||
martin1:
|
||||
candidate: martin
|
||||
wade1:
|
||||
candidate: wade
|
||||
question: Cras justo odio, dapibus ac facilisis in, egestas eget quam. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Nullam id dolor id nibh ultricies vehicula ut id elit.
|
||||
answer: option 3
|
||||
saved: 0
|
||||
@ -608,8 +608,8 @@ martin1:
|
||||
created_at: <%= DateTime.now() - 36.hours - 22.minutes %>
|
||||
updated_at: <%= DateTime.now() - 36.hours - 22.minutes %>
|
||||
|
||||
martin2:
|
||||
candidate: martin
|
||||
wade2:
|
||||
candidate: wade
|
||||
question: fed2
|
||||
answer: 'indexOf()'
|
||||
saved: 0
|
||||
@ -617,8 +617,8 @@ martin2:
|
||||
created_at: <%= DateTime.now() - 36.hours - 24.minutes %>
|
||||
updated_at: <%= DateTime.now() - 36.hours - 4.minutes %>
|
||||
|
||||
martin3:
|
||||
candidate: martin
|
||||
wade3:
|
||||
candidate: wade
|
||||
question: fed3
|
||||
answer: {html: '<h1>Salmon</h1>', css: 'h1 {color: salmon;}', js: '', text: 'Gotta lotta GOOD things on sale, strangah.'}
|
||||
saved: 0
|
||||
@ -626,8 +626,8 @@ martin3:
|
||||
created_at: <%= DateTime.now() - 36.hours - 26.minutes %>
|
||||
updated_at: <%= DateTime.now() - 36.hours - 6.minutes %>
|
||||
|
||||
martin4:
|
||||
candidate: martin
|
||||
wade4:
|
||||
candidate: wade
|
||||
question: fed4
|
||||
answer: Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
|
||||
saved: 0
|
||||
@ -635,8 +635,8 @@ martin4:
|
||||
created_at: <%= DateTime.now() - 36.hours - 28.minutes %>
|
||||
updated_at: <%= DateTime.now() - 36.hours - 28.minutes %>
|
||||
|
||||
martin5:
|
||||
candidate: martin
|
||||
wade5:
|
||||
candidate: wade
|
||||
question: fed5
|
||||
answer: 'Dynamic listeners'
|
||||
saved: 0
|
||||
@ -644,8 +644,8 @@ martin5:
|
||||
created_at: <%= DateTime.now() - 36.hours - 30.minutes %>
|
||||
updated_at: <%= DateTime.now() - 36.hours - 30.minutes %>
|
||||
|
||||
martin6:
|
||||
candidate: martin
|
||||
wade6:
|
||||
candidate: wade
|
||||
question: fed6
|
||||
answer: Integer posuere erat a ante venenatis dapibus posuere velit aliquet.
|
||||
saved: 0
|
||||
@ -653,8 +653,8 @@ martin6:
|
||||
created_at: <%= DateTime.now() - 36.hours - 32.minutes %>
|
||||
updated_at: <%= DateTime.now() - 36.hours - 12.minutes %>
|
||||
|
||||
martin7:
|
||||
candidate: martin
|
||||
wade7:
|
||||
candidate: wade
|
||||
question: fed7
|
||||
answer: {html: '<p>This means <strong>jQuery</strong> needs to be available in live-coder!</p>', css: "strong {font-size: 1.6em;}\n.green {color: green;}", js: '$("strong").addClass("green");'}
|
||||
saved: 0
|
||||
@ -662,8 +662,8 @@ martin7:
|
||||
created_at: <%= DateTime.now() - 36.hours - 34.minutes %>
|
||||
updated_at: <%= DateTime.now() - 36.hours - 14.minutes %>
|
||||
|
||||
martin8:
|
||||
candidate: martin
|
||||
wade8:
|
||||
candidate: wade
|
||||
question: fed8
|
||||
answer:
|
||||
other: Some generic user input
|
||||
@ -674,8 +674,8 @@ martin8:
|
||||
created_at: <%= DateTime.now() - 36.hours - 36.minutes %>
|
||||
updated_at: <%= DateTime.now() - 36.hours - 16.minutes %>
|
||||
|
||||
martin9:
|
||||
candidate: martin
|
||||
wade9:
|
||||
candidate: wade
|
||||
question: fed9
|
||||
answer:
|
||||
other: Brunch
|
||||
@ -687,8 +687,8 @@ martin9:
|
||||
created_at: <%= DateTime.now() - 36.hours - 38.minutes %>
|
||||
updated_at: <%= DateTime.now() - 36.hours - 18.minutes %>
|
||||
|
||||
martin10:
|
||||
candidate: martin
|
||||
wade10:
|
||||
candidate: wade
|
||||
question: fed10
|
||||
answer: ["Live long and prosper", "Who you calling Scruffy?"]
|
||||
saved: 0
|
||||
|
4
test/fixtures/candidates.yml
vendored
4
test/fixtures/candidates.yml
vendored
@ -59,6 +59,7 @@ richard: # Richard has completed AND submitted the test
|
||||
completed: true
|
||||
reminded: false
|
||||
test_hash: 6NjnourLE6Y
|
||||
review_status: 1
|
||||
|
||||
juan: # Juan has chosen "finish later" for live coders
|
||||
name: Juan Campbell
|
||||
@ -79,6 +80,7 @@ stacy: # Stacy has completed AND submitted the test
|
||||
completed: true
|
||||
reminded: false
|
||||
test_hash: s6oFExZliYYFx
|
||||
review_status: 2
|
||||
|
||||
henry: # Henry has completed AND submitted the test
|
||||
name: Henry Butler
|
||||
@ -98,5 +100,5 @@ wade: # Wade has completed AND submitted the test
|
||||
quiz: fed
|
||||
completed: true
|
||||
reminded: false
|
||||
test_hash: BkSkpa/pJnkz2N
|
||||
test_hash: BkSkpapJnkz2N
|
||||
|
||||
|
2
test/fixtures/questions.yml
vendored
2
test/fixtures/questions.yml
vendored
@ -55,7 +55,7 @@ fed5:
|
||||
fed6:
|
||||
quiz: fed
|
||||
question: Comment on how realistic the following image is.
|
||||
attachment: "http://dev.perficientxd.com/skill_assets/commets_css.jpg"
|
||||
attachment: "https://dev.perficientdigital.com/skills-app-images/commets_css.jpg"
|
||||
category: CSS
|
||||
input_type: text
|
||||
input_options:
|
||||
|
@ -5,4 +5,30 @@ class ReviewerVoteTest < ActiveSupport::TestCase
|
||||
test "the truth" do
|
||||
assert ReviewerVoteTest
|
||||
end
|
||||
|
||||
test "richard has 3 votes" do
|
||||
richard = candidates(:richard)
|
||||
|
||||
assert_equal 3, richard.votes.size
|
||||
end
|
||||
|
||||
test "manager has 4 votes" do
|
||||
manager = users(:manager)
|
||||
|
||||
assert_equal 4, manager.votes.size
|
||||
end
|
||||
|
||||
test "richard has been approved" do
|
||||
richard = candidates(:richard)
|
||||
|
||||
assert richard.approved?
|
||||
refute richard.declined?
|
||||
end
|
||||
|
||||
test "stacy has been declined" do
|
||||
stacy = candidates(:stacy)
|
||||
|
||||
assert stacy.declined?
|
||||
refute stacy.approved?
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user