2017-07-04 15:09:36 +02:00
|
|
|
package site
|
2017-06-15 13:19:49 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2017-07-01 20:55:50 +02:00
|
|
|
"github.com/osteele/gojekyll/config"
|
2017-06-16 22:47:49 +02:00
|
|
|
"github.com/stretchr/testify/require"
|
2017-06-15 13:19:49 +02:00
|
|
|
)
|
|
|
|
|
2017-06-16 01:49:04 +02:00
|
|
|
func TestIsMarkdown(t *testing.T) {
|
2017-07-04 15:09:36 +02:00
|
|
|
s := New(config.Flags{})
|
2017-06-24 19:30:01 +02:00
|
|
|
require.Equal(t, "", s.PathPrefix())
|
|
|
|
require.False(t, s.KeepFile("random"))
|
2017-07-02 01:42:48 +02:00
|
|
|
require.True(t, s.KeepFile(".git"))
|
|
|
|
require.True(t, s.KeepFile(".svn"))
|
2017-06-15 13:19:49 +02:00
|
|
|
}
|