mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Implements event submissions over time chart
This commit is contained in:
parent
b6538cddb2
commit
40c61ed717
12 changed files with 215 additions and 9 deletions
|
|
@ -6,6 +6,25 @@ describe Conference do
|
|||
|
||||
let(:subject) { create(:conference) }
|
||||
|
||||
describe '#pending?' do
|
||||
|
||||
context 'is pending' do
|
||||
|
||||
it '#pending? is true' do
|
||||
subject.start_date = Date.today + 10
|
||||
expect(subject.pending?).to be true
|
||||
end
|
||||
end
|
||||
|
||||
context 'is not pending' do
|
||||
|
||||
it '#pending? is false' do
|
||||
subject.start_date = Date.today - 10
|
||||
expect(subject.pending?).to be false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '#registration_open?' do
|
||||
|
||||
context 'closed registration' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue