// Copyright 2014-2015 Chadev. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package meetup

import (
	"os"
	"testing"
)

func TestGetMeetupEvents(t *testing.T) {
	if os.Getenv("CHADEV_MEETUP") == "" {
		t.Skip("no meetup API key set, skipping test")
	}

	_, err := GetNextMeetup("chadevs")
	if err != nil {
		t.Error(err)
	}
}

// Copyright 2014-2015 Chadev. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package meetup

import (
	"os"
	"testing"
	"time"
)

func TestGetMeetupEvents(t *testing.T) {
	if os.Getenv("CHADEV_MEETUP") == "" {
		t.Skip("no meetup API key set, skipping test")
	}

	var l bool
	d := time.Now().Weekday().String()
	if d == "Thursday" {
		l = true
	}

	_, err := GetTalkDetails(l)
	if err != nil {
		t.Error(err)
	}
}

--- 
+++ 
@@ -7,7 +7,6 @@
 import (
 	"os"
 	"testing"
-	"time"
 )
 
 func TestGetMeetupEvents(t *testing.T) {
@@ -15,13 +14,7 @@
 		t.Skip("no meetup API key set, skipping test")
 	}
 
-	var l bool
-	d := time.Now().Weekday().String()
-	if d == "Thursday" {
-		l = true
-	}
-
-	_, err := GetTalkDetails(l)
+	_, err := GetNextMeetup("chadevs")
 	if err != nil {
 		t.Error(err)
 	}
Fix Meetup API unit test

Signed-off-by: Adam Jimerson <0a1ce5db568b585e24ec79212f7ab30cdb820af8@gmail.com>
